FAQ

Answers to common, technical questions.

How do I check if a PDA exists?

You can use the public key endpoint to verify if the PDA exists. eg. you can send a GET request to https://test.hubat.net/publickey and if the response is 200 the PDA exists.

I receive a duplicate data error whenever I try to insert the same object to two different endpoints/namespaces.

Currently, the PDA doesn’t allow creating the same object twice, even in different namespaces.

Is there any way to read a record by its record Id?

In its current version, the API doesn't support getting records by their record IDs.

Is it possible to create unique indexes for custom properties in a data path?

For example, not allowing multiple entries at https://postman.hubat.net/api/v2.6/data/testdocumentation/testpath with the same data.value?

At the moment, the PDA doesn't support unique indexes, so you cannot ensure that a property will have a unique value. The PDA only validates if the whole JSON object is unique, but it does not provide such granularity at a single field level.

For example, if you want to post the same object twice, it will fail:

{firstName: "John", lastName: "Smith"};

And it will succeed if you change the value of the property lastName:

{firstName: "John", lastName: "Wick"};

So, you cannot ensure that the value of the property lastName will be unique.

Is there any way to update only a nested field of a record Id without first fetching the whole object?

Unfortunately, this is not possible. The API is REST, so it’s not possible to “select” the data needed to be fetched or pushed. The API will always return the full representation of the record.

Is there a plan to introduce additional options for update operations in the foreseeable future?

i.e. options: { replaceOnlyNestedFields: true } ?

Currently, there are no plans to introduce options for update operations.

How can I get my account activated or verified so that I can get the Developers Portal?

If you haven’t received an email with an activation link, please send us an email or use the #developers channel in our community Slack.

I am getting an error while creating a new PDA.

Most likely a PDA with the same email or name already exists. Please try a different combination

Signing up with the Developers Portal returns an error message.

Most likely a PDA with the same email or name already exists. You can sign up with an existing PDA here. If you still encounter issues send us an email at support@dataswyft.com or use the #developers channel in our Slack.

We use deep links but you can have support for both if you want. In the Developer Portal, you can set the deep link for the Android callback URI and an app link as a Web callback URI.

Once a user has been created there will be times where we need to send them correspondence. Can this be achieved?

For authentication, you don't need to store the emails, but if you need to access them for correspondence your best options are:

  • Store the emails on your back-end, which will impact the application rating

  • Link a third-party email service like MailChimp and store your users' emails on their servers

I'm trying to upload a file to PDA and I'm getting an "Access Denied" error.

Currently, an application requires the relevant permissions to use the File API.

I'm trying to access a different namespace and I'm getting an "Access Denied" error.

Currently, an application requires the relevant permissions to access a different namespace.

I'm trying to access data from a data plug and I'm getting an "Access Denied" error.

Currently, an application requires the relevant permissions to access the data of a data plug.

I created an application from the Developers Portal but when I try to use it the requests fail.

If the application id is app-100 and the application is still in draft in the Developers Portal, then -dev has to be appended to the application id, app-100-dev. This issue will be corrected in a feature update of the Developers Portal.

Last updated