Rest Api Get by Name or Id
Rest Api Get by Name or Id
ID types REST API
You can implement the ID types Balance API to get information about category ID types and campaign delivery IDs and to create and manage ID types for your partner seat.
Note: Users no longer create campaigns in the Oracle Data Cloud platform UI. The campaign workflow is at present part of the audience workflow. The platform still uses campaigns to manage audition information commitment nonetheless. They are created automatically when a UI user delivers an audition. In the APIs, you lot create and apply campaigns as before.
In this topic
Explore the API
The embedded I/O dr. below enables y'all to explore the API. The I/O medico explains the parameters for each method and provides templates for your calls. Y'all cannot make live API calls from the tool, however.
Open up the link beneath in a new tab to run into the I/O dr. in a 3-pane format.
For assistance with this API, contact My Oracle Support (MOS).
Service URI
The URI for the ID types API is:
services.bluekai.com/residuum/idTypes
Schema
The about upwardly-to-date ID types API schema is at the following URI:
services.bluekai.com/rest/idType.schema
List ID types
You can combine various query parameters to request a filtered set of ID types. For instance, to view all of the ID types that a partner has been given permission to use, specify their buyer ID as shown in the following GET example:
services.bluekai.com/residual/idTypes?buyerId=749&orderBy=id:asc
Sample list response:
idTypes properties
The idTypes
API GET, POST, and PUT responses may include the post-obit backdrop:
Read an ID type
Once yous know its ID, yous tin can asking an ID type's configuration equally shown in the following Become example:
services.bluekai.com/residual/idTypes/9
Where 9 is the unique ID of the ID type.
Sample read response:
Create ID types
To create an ID blazon for your partner seat, include a request body with the post-obit Mail phone call:
services.bluekai.com/rest/idTypes?pid=yourPartnerID
For example:
services.bluekai.com/residuum/idTypes?pid=9876
Sample request body specifying required fields:
{ "name": "TEST ID", "partner": { "id": 9876 }, "id_key": "1-3", "ingest_key": "hhidtest", "super_space": 7, "sub_space": 3, "permission": "private", "id_class": "chief", "retention": 100, "ingest_methods": [ "url_argument" ], "usages": [ "commitment", "matching", "bridging", "storage" ], "device_group": "registration", "sites": [], "status": "active" }
Of import: The pid
value in the POST request URL must match the value of the partner.id
in the request trunk.
Response:
{ "id": 36, "name": "TEST ID", "partner": { "id": 9876 }, "category": {}, "id_key": "1-three", "ingest_key": "hhidtest", "super_space": 7, "sub_space": 3, "permission": "private", "id_class": "primary", "retentivity": 100, "ingest_methods": ["url_argument"], "usages": ["delivery", "matching", "bridging", "storage"], "device_group": "registration", "metadata": [], "sites": [], "target_partners": [], "status": "active" }
Update ID types
To update an ID blazon in your partner seat, include a request trunk with the following PUT call:
services.bluekai.com/rest/idTypes/idTypeID?pid=yourPartnerID
For case:
services.bluekai.com/residuum/idTypes/36?pid=9876
Sample request body specifying required fields:
Expand to come across the sample
{ "id" : 36, "proper noun" : "Test ID UPDATED", "partner" : { "id" : 9876 }, "id_key" : "one-3", "ingest_key" : "hhidtest", "super_space" : 7, "sub_space" : 3, "permission" : "private", "id_class" : "primary", "memory" : 100, "ingest_methods" : [ "url_argument" ], "usages" : [ "delivery", "matching", "bridging", "storage" ], "device_group" : "registration", "metadata" : [ ], "sites" : [ ], "target_partners" : [ ], "status" : "active" }
Important: The pid
value in the PUT request URL must match the value of the partner.id
in the request torso.
Response:
{ "id" : 36, "proper name" : "Examination ID UPDATED", "partner" : { "id" : 9876 }, "category" : { }, "id_key" : "1-three", "ingest_key" : "hhidtest", "super_space" : 7, "sub_space" : three, "permission" : "individual", "id_class" : "chief", "retentiveness" : 100, "ingest_methods" : [ "url_argument" ], "usages" : [ "delivery", "matching", "bridging", "storage" ], "device_group" : "registration", "metadata" : [ ], "sites" : [ ], "target_partners" : [ ], "condition" : "active" }
Delete ID types
To delete an ID blazon from your partner seat, include a request body with the following DELETE telephone call:
services.bluekai.com/balance/idTypes/idTypeID?pid=yourPartnerID
For example:
services.bluekai.com/rest/idTypes/36?pid=9876
Sample response:
HTTP Response 204 No Content
Query parameters
The idTypes
API supports following query parameters:
Parameter | Type | Description |
---|---|---|
buyerId | integer | Filter for ID types based on the specified ID of the partner who either owns the ID blazon or has been granted permissions to it. |
offset | integer | The starting index from which to return the ID types |
orderBy | string | Sort the returned ID types by one of the post-obit parameters:
To list the returned ID types in ascending or descending club based on the specified parameter, append |
partnerId | integer | Filter for ID types based on the specified partner ID. |
q | string | Filter the returned ID types according to the following properties, operators, and a cord within double quotes:
Valid operators include:
Depending on the context from where you consequence the query that contains the filter expression, you may demand to utilise percent encoding. For example, if you execute a query as a cURL command, so the filter expression must replace white spaces with |
size | integer | The maximum number of ID types to exist included in the response. The size property must exist used in conjunction with the commencement belongings. |
Errors codes
If there is a problem with your idTypes
request, the response will apply one of the fault messages returned in response to the following call:
https://services.bluekai.com/residuum/idTypes.errors
Code | Mistake message |
---|---|
BK-10001 | Could not find resources for the specified path |
BK-10002 | Bad query parameters |
BK-10003 | Invalid JSON input |
BK-10004 | Input JSON does non pass schema validation |
BK-10005 | Input JSON contains bad property |
BK-10006 | Input JSON has missing properties |
BK-10007 | Input JSON has bad belongings that does not match min length requirement |
BK-10008 | Input JSON has bad belongings that does not match max length requirement |
BK-10009 | Not enough privileges to access requested resource |
BK-10010 | The request could non be completed past the service due to malformed data or syntax |
BK-10011 | Incorrect sorting parameter |
BK-10012 | Additional properties detected. Schema does not allow extra properties to be present |
BK-10013 | Incorrect expand parameter |
BK-10014 | Incorrect q query parameter syntax |
BK-10015 | Property has unacceptable/bad format |
BK-10016 | Property value does not appear on the list of acceptable values |
BK-10017 | Array must not contain duplicate entries |
BK-44001 | Invalid id types ID |
BK-44002 | Errors during create operation |
BK-44003 | No id types permissioned for the given partner |
BK-44004 | Invalid parameter |
BK-44005 | Exceed maximum number of id types for partner |
BK-44006 | Primary id blazon must have device grouping |
BK-44007 | Permission missing |
BK-44008 | Private permission id type must specify permissioned partners |
BK-44009 | Id Key Invalid |
Rest Api Get by Name or Id
Posted by: smithmuspee.blogspot.com