APIs to manage company custom fields.
API reference
/Custom fields
/- Update option for the given options group
Reorder custom fields
Update custom field status
Create custom field
Update custom field
Get custom field
Delete custom field
List custom field
Upload file of options to be processed
Create custom field arm
Update arm
Get arm
Delete arm
List arms
Get options for a custom field.
Get applicable custom fields
Update option for the giv...
Custom Field API (v3)
Download OpenAPI description
Languages
Servers
Sandbox URL
https://api-ext-sboxmeta.partners.spotnana.com
Spotnana mock server
https://developer.spotnana.com/_mock/openapi/customfieldapi
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/list
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/list
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
'https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/list?companyRole=ORG' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paginationParams": {
"offset": 0,
"limit": 100
},
"searchText": "string",
"filter": {
"definedAtList": [
"ORG"
],
"enabled": true,
"customFieldIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"tripUsageTypes": [
"STANDARD"
]
}
}'Response
application/json
{ "paginationParams": { "totalNumResults": 0 }, "fields": [ { … } ] }
Bodyapplication/jsonrequired
Array of option to insert or update. Any existing option with same name will be updated and if there is no exiting item having same name as specified, then a new option will be inserted.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/{customFieldId}/option-groups/{optionGroupId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/{customFieldId}/option-groups/{optionGroupId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X PATCH \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/4974a66b-7493-4f41-908c-58ba81093947/option-groups/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"toUpdate": [
{
"name": "XC",
"description": "Air exchange code",
"additionalInfos": [
{
"type": "VARIABLE",
"name": "LLF"
}
],
"translatedName": "XC",
"translatedDescription": "Código de intercambio de aire"
}
],
"toDelete": [
"XC"
]
}'Bodymultipart/form-datarequired
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/{customFieldId}/option-groups/{optionGroupId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/{customFieldId}/option-groups/{optionGroupId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/4974a66b-7493-4f41-908c-58ba81093947/option-groups/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: multipart/form-data' \
-F file=stringResponse
application/json
{ "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8" }