APIs to manage company custom fields.
API reference
/Custom fields
/- Update arm
Reorder custom fields
Update custom field status
Create custom field
Update custom field
Get custom field
Delete custom field
List custom field
Update option for the given options group
Upload file of options to be processed
Create custom field arm
Get arm
Delete arm
List arms
Get options for a custom field.
Get applicable custom fields
Update arm
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
Bodyapplication/jsonrequired
actionAutoOption (object) or UserOptionCreateRequest (object)(CustomFieldActionCreateRequest)required
One of:
An automatic or a user action to select one of the items as a response to the field.
action.hiddenboolean
Whether this code will be hidden to the user.
Default false
Example: true
Code which represents the auto selected option for the custom field.
Example: "LD"
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/{customFieldId}/arms
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/{customFieldId}/arms
- 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/arms \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "US Employee",
"audiences": [],
"action": {
"type": "AUTO",
"hidden": true,
"description": "Lower fare declined",
"name": "LD",
"additionalInfos": []
}
}'Response
application/json
{ "armId": "0fd508db-63ff-4444-bfb1-b89c43061433", "optionGroupId": "a12319da-5fb4-44d5-ad00-21b6acdfac9e" }
Bodyapplication/jsonrequired
One of:
An automatic or a user action to select one of the items as a response to the field.
action.hiddenboolean
Whether this code will be hidden to the user.
Default false
Example: true
Code which represents the auto selected option for the custom field.
Example: "LD"
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/{customFieldId}/arms/{armId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/{customFieldId}/arms/{armId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X PUT \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/4974a66b-7493-4f41-908c-58ba81093947/arms/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"name": "US Employee",
"audiences": [],
"action": {
"type": "AUTO",
"hidden": true,
"description": "Lower fare declined",
"name": "LD",
"additionalInfos": []
}
}'- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/custom-fields/{customFieldId}/arms/{armId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/customfieldapi/v3/companies/{companyId}/custom-fields/{customFieldId}/arms/{armId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/4974a66b-7493-4f41-908c-58ba81093947/custom-fields/4974a66b-7493-4f41-908c-58ba81093947/arms/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Response
application/json
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "US Employee", "audiences": [], "action": { "type": "AUTO", "hidden": true, "description": "Lower fare declined", "name": "LD", "additionalInfos": [] } }