Search who can be asked for approval
const url = 'https://work.optidata.cloud/api/drives/1/approvals/requestables?query=john';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://work.optidata.cloud/api/drives/1/approvals/requestables?query=john' \ --header 'Authorization: Bearer <token>'Users of the tenant who can be named as approvers, matched by name or e-mail and ordered by name. The caller is never included.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Numeric id of the drive. Read it from GET /drives/config.json.
Query Parameters
Section titled “Query Parameters”Text matched against the name and e-mail.
Example
johnResponses
Section titled “ Responses ”Candidate approvers.
object
object
Tenant-wide identifier of the user. Use this, not id, on account endpoints.
Present where the payload includes it (for example audit entries).
Example
{ "requestables": [ { "id": 15, "uuid": "9c1f0e2a-4d31-4d8a-8c1a-1f0b6b1f9a10", "name": "Jane Doe", "email": "jane.doe@acme.example", "status": "active", "type": "user" } ]}Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}The request body or query string failed validation.
object
The first validation message.
Validation messages keyed by field name.
object
Examples
{ "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] }}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}