QBOS REST API documentation (acl_ace)

(return to Main Document)

Introduction

The acl_ace API allows client applications to maintain acl_ace data including any part of its demographic record sets.

Audience

This developer's guide is intended for software developers needing a technical reference for using the QBOS REST API. The information you find in this guide is written by software engineering, and is authoritative on how the API behaves.

Additional resources, information about this guide

Occasionally, we make a mistake in this documentation, or unknowingly break a feature that you depend on. If this has happened to you, we apologize! You can help us fix the issue by contacting us. We appreciate your help.

Getting Started

To place any request in QBOS API application from third party application you need to authenticate user account and set/calculate values for the following request headers: x-qbos-id, x-qbos-nonce, x-qbos-date-utc, x-qbos-hash-version, x-qbos-auth

See details in Authentication Documentation.

acl_ace properties

Properties prefixed with '_' (underscore) are read-only properties. i.e. POST and PUT processing will ignore these properties.

Name Type Max length Numeric Required
For POST
Filterable Description

id

bigint

 

 

 

Required for GET(by id),PUT,DELETE

parent_id

bigint

 

yes

 

parent_type

nvarchar

50

 

yes

 

type

nvarchar

50

 

 

 

Value is "acl_ace"

sub_type_id

int

 

 

 

permission_id

int

 

 

 

Permission ids

bAllow

bit

 

 

 

_org_id

int

 

 

 

Read acl_ace by id:

GET https:/.../v1/o/acl_ace/{id}

Response codes:

  • 400 - Client error
  • 500 - Server error
  • 404 - Not found or user does not have permission to access resources of this type.
  • 200 - OK

Response data: GET https:/.../v1/o/acl_ace/32842
{ "parent_type" : "acl", "parent_id" : 3080, "type" : "acl_ace", "id" : 32842, "sub_type" : "G", "sub_type_id" : 15914, "permission_id" : 128, "bAllow" : 1, "_org_id" : 506764 }

Create acl_ace:

POST https:/.../v1/o/acl/3080/acl_ace

Request data [See properties]:

{"acl_ace": [ { "parent_type" : "acl", "parent_id" : 3080, "property_a" : "value-a", "property" : "See acl_ace properties", "property_z" : "value-z" } ] }

Response codes:

Delete acl_ace:

DELETE https:/.../v1/o/acl_ace/{id}

The "id" in JSON payload is required to match the {id} in the URI to ensure that deletion requests are intended and safe

{"acl_ace": [{"id":32842}]}

Response codes:

  • 400 - Client error
  • 500 - Server error
  • 204 - OK
  • 404 - Not found

Response data:
{}