# Retrieve a custom field

Retrieves a specified custom field schema for a specified resource.

Endpoint: GET /custom-fields/{resource}/{name}
Version: latest
Security: SecretApiKey, JWT

## Security:

  - `SecretApiKey` (unknown)
    apiKey in header REB-APIKEY

  - `JWT` (unknown)
    http bearer JWT

## Path parameters:

  - `resource` (string, required)
    Type of resource schema.

  - `name` (string, required)
    ID of the custom field.

## Response 200:

  - `200` (unknown)
    Custom field schema retrieved.

## Response 200 fields (application/json):

  - `name` (string)
    Name of the custom field.

  - `type` (string, required)
    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.
    Enum: "array"

  - `description` (string | null)
    Description of the custom field.

  - `isEnabled` (boolean)
    Specifies if the custom field is enabled.

  - `additionalSchema` (object | null)
    Additional schema which adds additional values constrains.

  - `additionalSchema.allowedValues` (array)
    List of allowed values.

  - `additionalSchema.required` (boolean)
    Specifies if this value is required.
This value can be combined with any parameter and is available for custom fields of any type.

  - `additionalSchema.default` (array)
    Default value.

  - `_links` (array)
    Related links.

  - `_links.href` (string)
    Link URL.

  - `_links.rel` (string)
    Type of link.
    Enum: "self"

  - `type` (string, required)
    Describes the data type.
The custom field type value cannot be changed.
Specifies a `true` or `false` value.
    Enum: "boolean"

  - `isEnabled` (boolean)
    Specifies if custom field is enabled.

  - `type` (string, required)
    Describes the data type.
The custom field type value cannot be changed.
String in [full-date](https://www.rfc-editor.org/rfc/rfc3339) format (YYYY-MM-DD).
    Enum: "date"

  - `type` (string, required)
    Describes the data type.
The custom field type value cannot be changed.
String in [date-time](https://www.rfc-editor.org/rfc/rfc3339) format (YYYY-MM-DDTHH:MM:SSZ).
    Enum: "datetime"

  - `type` (string, required)
    Describes the data type.
The custom field type value cannot be changed.
Cardinal value of between `-2^31` and `2^31-1`.
    Enum: "integer"

  - `type` (string, required)
    Describes the data type.
The custom field type value cannot be changed.

Float value. This field also accepts cardinal values which are interpreted as float.
    Enum: "number"

  - `type` (string, required)
    Describes the data type.
The custom field type cannot be changed.

Regular string of up to 255 characters.
    Enum: "string"

  - `type` (string, required)
    Describes the data type.
The custom field type cannot be changed.
A map of 3-letter currency, code, and amount.
Example: `{"currency": "EUR", "amount": 25.30}`.
    Enum: "monetary"

## Response 401:

  - `401` (unknown)
    Unauthorized access.
Invalid credentials used.

## Response 401 fields (application/json):

  - `status` (integer)
    HTTP status code.

  - `type` (string)
    Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference.
It should provide human-readable documentation for the problem type.
When this member is not present, its value is assumed to be "about:blank".

  - `title` (string)
    Short, human-readable summary of the problem type.
Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem.

  - `detail` (string)
    Human-readable explanation that is specific to this occurrence of the problem.

  - `instance` (string)
    URI reference that identifies the specific occurrence of the problem.
It may or may not yield further information if dereferenced.

## Response 403:

  - `403` (unknown)
    Access forbidden.
If the organization requires multi-factor authentication (MFA) and the session has not passed MFA, `error` is `mfa_required`.

## Response 403 fields (application/json):

  - `status` (integer)
    HTTP status code.

  - `error` (string)
    Message that describes why the request is forbidden.
Most responses use a descriptive message, such as `Not allowed to change security settings`.
If the organization requires multi-factor authentication (MFA) and MFA verification has not been completed for the session, this value is `mfa_required`.
If the request sets `requireMfa` to `true` and MFA verification has not been completed for the session, this value is `mfa_required_for_caller`.

  - `type` (string)
    Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference.
It should provide human-readable documentation for the problem type.
When this member is not present, its value is assumed to be "about:blank".

  - `title` (string)
    Short, human-readable summary of the problem type.
Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem.

  - `detail` (string)
    Human-readable explanation that is specific to this occurrence of the problem.

  - `instance` (string)
    URI reference that identifies the specific occurrence of the problem.
It may or may not yield further information if dereferenced.

## Response 404:

  - `404` (unknown)
    Resource not found.

## Response 404 fields (application/json):

  - `status` (integer)
    HTTP status code.

  - `type` (string)
    Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference.
It should provide human-readable documentation for the problem type.
When this member is not present, its value is assumed to be "about:blank".

  - `title` (string)
    Short, human-readable summary of the problem type.
Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem.

  - `detail` (string)
    Human-readable explanation that is specific to this occurrence of the problem.

  - `instance` (string)
    URI reference that identifies the specific occurrence of the problem.
It may or may not yield further information if dereferenced.

