- Create or alter a custom field
Retrieve custom fields
Retrieve a custom field
Create or alter a custom...
Creates or alters a specified custom field schema for a specified resource.
Security
SecretApiKey or JWT
Custom fields schema of the specified resource.
Describes the data type. The custom field type value cannot be changed.
Array of strings with up to 255 characters. The maximum size is 1000 elements.
Value:"array"
Discriminator
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/custom-fields/{resource}/{name}
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/custom-fields/{resource}/{name}
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/custom-fields/{resource}/{name}
curl -i -X PUT \
'https://www.rebilly.com/_mock/catalog/all/custom-fields/{resource}/{name}' \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"type": "array",
"description": "string",
"isEnabled": true,
"additionalSchema": {
"allowedValues": [
"string"
],
"required": true,
"default": [
"string"
]
}
}'Custom field updated.
Headers
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
Example:3600
Describes the data type. The custom field type value cannot be changed.
Array of strings with up to 255 characters. The maximum size is 1000 elements.
Value:"array"
Discriminator
Response
{ "name": "string", "type": "array", "description": "string", "isEnabled": true, "additionalSchema": { "allowedValues": [ … ], "required": true, "default": [ … ] }, "_links": [ { … } ] }