For the complete documentation index, see llms.txt. This page is also available as Markdown.

Clone service order intake form

Clone a service order intake form, fields and all, for the same service type. Placements ride the clone with everything on them — position, required and their conditions included. This is how a store gets its own editable version of a tenant form: the copy belongs to the store that made it, and it wins over the tenant form for that store. Supply serviceFormUid to make the call idempotent: a repeat with the same serviceFormUid returns the copy already created and writes nothing, when that copy is one the tenant cloned from the same form at the scope the request names — a tenant-wide form, or a form of the same store. The seeded default form's uid, and a serviceFormUid held by any other form, are refused with a 400, and a malformed uid stays refused. A repeat is answered once the scope the request names is resolved, with the permission that scope needs, and before any other check the clone makes, so it never meets the refusal its own record would cause: a retry naming a store the tenant does not hold is refused with a 400, and a tenant-wide retry without SERVICE_CONFIG with a 403. Set storeUid to clone into a single store; leave it out or send an empty string to make a tenant-wide copy, which requires SERVICE_CONFIG — so a clone moves a form across levels, never between service types. One active form per level applies to the level the copy lands at: a service type carries at most one unarchived form per store and at most one unarchived tenant-wide form, so cloning into a level an active form already holds is refused with a 409 naming that level — including when the form that holds it is the source itself. A copy is never created archived, so this call is always checked against a level. A level that was free when the client last read it may have been taken since, so a 409 is answered by re-reading and trying again rather than by retrying the same call. The seeded default occupies no level, so cloning it tenant-wide is allowed as long as the tenant has no active tenant-wide form of its own, and that is how a tenant starts from the default: the copy is an ordinary form, editable and archivable, and the default goes on existing beneath it.

Required permissions: SERVICE_STORE_CONFIG, SERVICE_CONFIG

post
/tenants/{tenantUid}/serviceorders/forms/{serviceFormUid}/clone
Authorizations
AuthorizationstringRequired

Access token recevied after user login with a deviceToken

Path parameters
tenantUidstringRequired

Reference to a tenant.

Pattern: ^[A-Za-z0-9-_]+
serviceFormUidstringRequired

Reference to a service order intake form

Pattern: ^[A-Za-z0-9-_]+
Body

A copy of an intake form, for the same service type as the form it is cloned from. Cloning is how a store gets its own editable version of a tenant form: the copy belongs to the store that made it, and it wins over the tenant form for that store. serviceFormUid is the uid of the new form — supply it to make the call idempotent, or leave it out to let the server generate one. A repeat with the same serviceFormUid returns the copy already created and writes nothing, when that copy is one the tenant cloned from the same form at the scope the request names — a tenant-wide form, or a form of the same store. The seeded default form's uid, and a serviceFormUid held by any other form, are refused with a 400, and a malformed uid stays refused. A repeat is answered once the scope the request names is resolved, with the permission that scope needs, and before any other check the clone makes, so it never meets the refusal its own record would cause: a retry naming a store the tenant does not hold is refused with a 400, and a tenant-wide retry without SERVICE_CONFIG with a 403. storeUid is the store to clone into; leave it out or send an empty string to make a tenant-wide copy, which requires SERVICE_CONFIG.

serviceFormUidstringOptionalPattern: ^[A-Za-z0-9-_]+
storeUidstringOptionalPattern: ^[A-Za-z0-9-_]*
namestringOptional

The name of the copy. Defaults to the name of the form it is cloned from.

Responses
201

Example response

application/json

An intake form: the ordered set of fields that is filled in when a service order of a given service type is created. A form belongs either to a single store or to the whole tenant. A store form always wins over the tenant form for the same service type, and the tenant form wins over the seeded default form. A tenant-wide form is edited only with SERVICE_CONFIG; a store that needs a different form clones it and edits the copy, which then wins for that store. Forms are never deleted — archive a form to take it out of use. storeUid is an empty string on a tenant-wide form.

serviceFormUidstringRequiredPattern: ^[A-Za-z0-9-_]+
tenantUidstringRequiredPattern: ^[A-Za-z0-9-_]+
storeUidstringRequiredPattern: ^[A-Za-z0-9-_]*
serviceTypeUidstringRequiredPattern: ^[A-Za-z0-9-_]+
namestringRequired

The name of the form.

archivedbooleanRequired

An archived form is kept for the service orders created from it, but is never resolved for new service orders.

createdAtstring · date-timeRequired
createdBystringRequired
lastModifiedAtstring · date-timeRequired
lastModifiedBystringRequired
post/tenants/{tenantUid}/serviceorders/forms/{serviceFormUid}/clone
POST /v2/tenants/{tenantUid}/serviceorders/forms/{serviceFormUid}/clone HTTP/1.1
Host: api.flowretail.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 57

{
  "serviceFormUid": "text",
  "storeUid": "text",
  "name": "text"
}
201

Example response

{
  "serviceFormUid": "text",
  "tenantUid": "text",
  "storeUid": "text",
  "serviceTypeUid": "text",
  "name": "text",
  "archived": true,
  "placements": [
    {
      "serviceFormFieldUid": "text",
      "position": 1,
      "required": true,
      "visibleWhen": {
        "serviceFormFieldUid": "text",
        "equals": "text"
      },
      "fieldKey": "text",
      "label": "text",
      "fieldType": "TEXT",
      "systemKind": "SERIAL_NUMBER",
      "sensitive": true,
      "selectOptions": [
        "text"
      ],
      "validation": "text",
      "note": "text"
    }
  ],
  "createdAt": "2026-01-01T00:00:00.000Z",
  "createdBy": "text",
  "lastModifiedAt": "2026-01-01T00:00:00.000Z",
  "lastModifiedBy": "text"
}

Last updated

Was this helpful?