openapi: 3.2.0 info: title: Reference Custom Fields API version: '2.0' contact: name: Sendlane url: https://sendlane.com email: support@sendlane.com description: Sendlane V2 API servers: - url: https://api.sendlane.com/v2 description: Sendlane security: - BearerToken: [] tags: - name: Custom Fields paths: /custom-fields: get: summary: Get Custom Fields tags: - Custom Fields responses: '200': description: OK content: application/json: schema: type: object properties: data: type: array items: $ref: '#/components/schemas/CustomField.v2' links: $ref: '#/components/schemas/PaginatorLinks.v2' meta: $ref: '#/components/schemas/PaginatorMeta.v2' operationId: get-custom-fields parameters: - $ref: '#/components/parameters/limit' - $ref: '#/components/parameters/page' description: Returns custom fields post: summary: Create Custom Field operationId: post-custom-fields requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomField.v2' examples: Example: value: name: string type: string responses: '200': description: OK content: application/json: schema: type: object properties: data: type: array items: $ref: '#/components/schemas/CustomField.v2' links: $ref: '#/components/schemas/PaginatorLinks.v2' meta: $ref: '#/components/schemas/PaginatorMeta.v2' description: Create custom field tags: - Custom Fields /custom-fields/{customFieldId}: parameters: - schema: type: integer name: customFieldId in: path required: true get: summary: Get Custom Field tags: - Custom Fields responses: '200': description: OK content: application/json: schema: type: object properties: data: $ref: '#/components/schemas/CustomField.v2' operationId: get-custom-fields-customFieldId description: Returns custom field patch: summary: Update Custom Field operationId: patch-custom-fields-customFieldId responses: '200': description: OK content: application/json: schema: type: object properties: data: $ref: '#/components/schemas/CustomField.v2' requestBody: content: application/json: schema: $ref: '#/components/schemas/CustomField.v2' description: Update custom field tags: - Custom Fields components: schemas: PaginatorMeta.v2: description: '' type: object x-examples: {} properties: current_page: type: integer readOnly: true from: type: integer readOnly: true last_page: type: integer readOnly: true path: type: string minLength: 1 readOnly: true per_page: type: integer readOnly: true to: type: integer readOnly: true total: type: integer readOnly: true title: Paginator Meta PaginatorLinks.v2: description: '' type: object x-examples: {} properties: first: type: string minLength: 1 format: uri readOnly: true last: type: string minLength: 1 format: uri readOnly: true prev: type: string minLength: 1 format: uri readOnly: true next: type: string minLength: 1 format: uri readOnly: true title: Paginator Links CustomField.v2: title: CustomField type: object properties: id: type: string name: type: string type: type: string created_at: type: string required: - name parameters: limit: name: limit in: query required: false schema: type: integer default: 100 description: Maximum number of results per request page: name: page in: query required: false schema: type: integer default: '1' description: Page of results to return securitySchemes: BearerToken: name: Authorization type: apiKey in: header description: API token sent in the Authorization header with the value "Bearer {apiToken}" OtherAccountBearerToken: name: Authorization-Destination type: apiKey in: header description: API token for other account sent in the Authorization-Destination header with the value "Bearer {apiToken}"