Added

Added PUT endpoint for updating Licenses

Added a new PUT /api/v1/licenses/:id endpoint for updating License resources via the API.

Endpoint

PUT /api/v1/licenses/:id

Update a specific license by ID.

Path Parameters:

  • license_id - Binti license ID

Request Body Attributes:

  • external-identifier (or external_identifier) - External system identifier for the license. Can be set to an empty string to clear the identifier. Empty values do not count as duplicates for uniqueness validation.
  • license-tags (or license_tags) - Array of tag names. Tags must be pre-configured for the agency. Setting this field replaces all existing tags on the license.
  • custom-field-values (or custom_field_values) - Object mapping custom field slugs to their values. Only custom fields configured for the License model at the agency are accepted.

Validation:

  • external-identifier must be unique within the agency (empty values are exempt from this validation)
  • license-tags must only contain tags that are pre-configured for the agency
  • license-tags must be provided as an array
  • Custom field values must reference valid custom fields for the License model at the agency

Response: Returns the updated license object with the same structure as the GET endpoint.

Note: The API accepts both hyphenated (external-identifier, license-tags, custom-field-values) and underscored (external_identifier, license_tags, custom_field_values) parameter name variants for compatibility.