Create a custom field
Creates a new custom field definition and returns it with a 201 status; the field key must be unique, and an organization defines at most 100.
Creates a new custom field definition and returns it with a 201 status; the field key must be unique, and an organization defines at most 100.
Authorization
apiKey In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Value in
- "text"
- "number"
- "boolean"
- "date"
- "select"
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/custom-fields" \ -H "Content-Type: application/json" \ -d '{ "key": "string", "label": "string", "type": "text" }'{ "id": "string", "organizationId": "string", "key": "string", "label": "string", "type": "text", "options": [ "string" ], "defaultValue": "string", "isRequired": true, "sortOrder": 0, "createdAt": "string", "updatedAt": "string"}Related documentation
Update a contact group
Updates an existing contact group's fields and returns the updated group. Use this endpoint to update a contact group through the Samva email API.
List custom fields
Returns every custom field definition for the organization in display order. An organization defines at most 100, so the list is never paged.