v1

latestOpenAPI 3.0.02026-07-2688129326.6 KB
form resource

Update form resource

patch/v1/organizers/{organizerId}/events/{eventId}/forms/{formId}

Path parameters

organizerIdstring objectId required

Resource identifier.

eventIdstring objectId required

Resource identifier.

formIdstring objectId required

Resource identifier.

Request body

namestring
displayNamestring nullable
localeDetailsobject nullable
defaultLocale'fr' | 'en' | 'es' nullable

Example request

{
  "name": "x",
  "displayName": "x",
  "fields": [
    {
      "status": "enabled",
      "visibility": "hidden",
      "name": "x",
      "optional": true,
      "hint": "string",
      "type": "choice",
      "options": [
        "string"
      ],
      "otherInput": true,
      "rule": "min"
    }
  ],
  "defaultLocale": "fr"
}

Response

Success

namestring required
displayNamestring nullable
localeDetailsobject nullable
defaultLocale'fr' | 'en' | 'es' nullable
_idstring objectId required
_createdAtstring date-time required
_updatedAtstring date-time nullable
_referencestring nullable

Example response

{
  "name": "x",
  "displayName": "x",
  "fields": [
    {
      "status": "enabled",
      "visibility": "hidden",
      "name": "x",
      "optional": true,
      "hint": "string",
      "type": "choice",
      "options": [
        "string"
      ],
      "otherInput": true,
      "rule": "min"
    }
  ],
  "defaultLocale": "fr",
  "_id": "64b7f8b6f23a4a4f3d0a9b12",
  "_createdAt": "2024-01-01T00:00:00.000Z",
  "_updatedAt": "2024-01-01T00:00:00.000Z",
  "_reference": "string"
}