This API is designed to update a Source in a specific PAA Group.
Notice
Accessing the APIs is through a dedicated domain/URL, according to your PlainID Tenant Locationhttps://API.us1.plainid.io
https://api.ca1.plainid.io
https://api.eu1.plainid.io
Using HTML Encoded Special Characters
Use HTML encoded patterns when working with values that contain special characters like spaces, dashes, etc. Refer to this HTML URL Encoding Reference for a full list.
Important note about headers
Refer to the headers below to modify your cURL sample. Check if the following headers are in the sample, if not, ensure you add it to your cURL sample before pasting into your API tool.Headers
*RequiredHeader | Value | cURL Line |
---|---|---|
Accept | `application/json` | `-H"Accept: application/json"` |
Content Type | `application/json` | `-H"Content-Type: application/json"` |
cURL Sample Guidelines
In order for the relevant parameters to appear in the cURL sample, you can input the values in the interactive API console on the right. They will then appear in the cURL sample on the bottom of the page in the correct format.
Using HTML Encoded Special Characters
Use HTML encoded patterns when working with values that contain special characters like spaces, dashes, etc. Refer to this HTML URL Encoding Reference for a full list.
For more details about Administration API Authentication, check out the Authentication APIs documentation
Provide your bearer token in the Authorization header when making requests to protected resources.
Example: Authorization: Bearer 123
The Environment ID can be found under the Details Tab in the Environment Settings.
The PAA Group Id
The Source ID
Body of the source request.
{
"sourceId": "PIPS4BRPBO81AVPC",
"paaGroupId": "paa1",
"adapter": "ws",
"name": "mockrest",
"status": "ACTIVE",
"description": "",
"properties": {},
"translator": {
"name": "plainid-rest-iRo",
"type": "plainid-rest",
"properties": {
"supportsfilter": true
}
},
"models": [
{
"type": "PHYSICAL",
"modelId": "PIPMM4BRPBO9U88OW",
"paaGroupId": "paa1",
"visible": true,
"name": "mockrest",
"description": "",
"sourceIds": [
"PIPS4BRPBO81AVPC"
],
"properties": {},
"metadata": [
{
"type": "DDL",
"text": "CREATE FOREIGN TABLE context ( \n \n uid string,\n\n name string options (nameinsource 'name'),\n\n city string options (nameinsource 'city'),\njwt string \n\n) OPTIONS (nameinsource '$.Users[*]', \"plainid:method\" 'GET', \"plainid:URI\" '/users/$(uid)', \"plainid:unwrap\" 'true');"
}
]
}
],
"paasProperties": [
{
"id": "PIMR4BRPBOE7JUGW",
"sourceId": "PIPS4BRPBO81AVPC",
"paaId": "PAA3QK1UON1BOXS",
"properties": {
"EndPoint": "http://mockserver.mockserver.svc.cluster.local:1080/json-response",
"Password": null,
"AuthPassword": "plainid",
"SecurityType": "None"
}
}
]
}
The parameter is relevent to the Update Sources API. Omit this parameter from the Create Source API request.
Source Name
Source Description
The parameter is relevent to the Update Sources API. Omit this parameter from the Create Source API request.
This parameter must be null
in the Create Source API.
The parameter is relevant to the Update Sources API. Omit this parameter from the Create Source API request.
The parameter is relevant to the Update Sources API. Omit this parameter from the Create Source API request.
The PAA ID. The PAA ID can be found in the Environment or Tenant Settings in the Policy Authorization Agent section.
Source Updated
{
"data": {
"sourceId": "PIPS4BRPBO81AVPC",
"paaGroupId": "paa1",
"adapter": "ws",
"name": "mockrest",
"status": "ACTIVE",
"description": "",
"properties": {},
"translator": {
"name": "plainid-rest-iRo",
"type": "plainid-rest",
"properties": {
"supportsfilter": true
}
},
"models": [
{
"type": "PHYSICAL",
"modelId": "PIPMM4BRPBO9U88OW",
"paaGroupId": "paa1",
"visible": true,
"name": "mockrest",
"description": "",
"sourceIds": [
"PIPS4BRPBO81AVPC"
],
"properties": {},
"metadata": [
{
"type": "DDL",
"text": "CREATE FOREIGN TABLE context ( \n \n uid string,\n\n name string options (nameinsource 'name'),\n\n city string options (nameinsource 'city'),\njwt string \n\n) OPTIONS (nameinsource '$.Users[*]', \"plainid:method\" 'GET', \"plainid:URI\" '/users/$(uid)', \"plainid:unwrap\" 'false');"
}
]
}
],
"paasProperties": [
{
"id": "PIMR4BRPBOE7JUGW",
"sourceId": "PIPS4BRPBO81AVPC",
"paaId": "PAA3QK1UON1BOXS",
"properties": {
"EndPoint": "http://mockserver.mockserver.svc.cluster.local:1080/json-response22",
"Password": null,
"AuthPassword": "plainid",
"SecurityType": "None"
}
}
]
}
}
Bad Request
Unauthorized
Internal Server Error