Parameter | Mandatory | Description | Examples | More Info |
---|---|---|---|---|
API | Yes | The API area | lookups.json | |
Action | Yes | The action to perform | action=create | |
General | Yes | Parameters described in overview | user=user&password=user | Structure of an API call |
JSON Input | Mandatory | Description | Examples |
---|---|---|---|
lookupsLookupValue | Yes | Lookup value | "lookupsLookupValue":"New Dept" |
lookupsLookupsPropertiesUuid | Yes | Lookup properties UUID | "lookupsLookupsPropertiesUuid":"A43DBA3799844D7D9E7B219530D68815" |
Example request:
http://<SERVER>/jsonapi/lookups.json?action=create&user=user&password=user&input={"data":[{"lookupslookupvalue":"New Dept","lookupslookupspropertiesUUID":"A43DBA3799844D7D9E7B219530D68815"}]}&version=3.9
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "data processed successfully.",
"warningmessage": "",
"success": true,
"synapiversion": 3.9,
"data": [
{
"lookupsUuid": "30ECA39A4C9493488B3E022BAB3BFF35",
"lookupsTimestampModified": 1648637819,
"lookupsRecordVersionNumber": 0
}
]
}