API reference › Shifts › No-shows and provider status

Reverse a provider No Show mark

DELETE /v1/shift-providers/{id}/no-show

Scope
shifts:edit
Roles
admin, scheduler

Clears the No Show flag for a provider on a shift — the correction path when the mark was applied by mistake. Restores the provider to the delivered coverage count and to normal billing treatment. Applies to every booked line the provider holds on this shift.

Parameters

Path parameters

NameTypeDescription
id requiredinteger

shift_providers row id

Example 1.

Every call also sends Authorization and X-Tenant-ID; see Getting started.

Request body

FieldTypeDescription
reasonstring or null

max length 1000. Example Marked in error — provider did attend.

affectFinancialsboolean or null

Required when a finance document linked to the work item is Sent or Approved; without it the call returns 422 FINANCIAL_CONSENT_REQUIRED. true applies the money side effects and syncs the linked documents; false changes the flag only and marks those documents out of sync.

Example

JSON
{
  "reason": "Marked in error — provider did attend",
  "affectFinancials": true
}

Example request

Shell
curl -X DELETE "https://api.fetchfido.ai/v1/shift-providers/{id}/no-show" \
  -H "Authorization: Bearer $FIDO_API_KEY" \
  -H "X-Tenant-ID: $FIDO_TENANT_ID" \
  -H "Content-Type: application/json" \
  -d '{"reason":"Marked in error — provider did attend","affectFinancials":true}'

Try it

Responses

200 No Show reversed

No Show reversed

JSON
{
  "success": true,
  "message": "No Show has been removed for this provider."
}
Response fields (2)
FieldTypeDescription
successboolean

Example true.

messagestring

Example No Show has been removed for this provider..

401 Not signed in

Missing, invalid or expired API key.

JSON
{
  "success": false,
  "message": "Invalid API key. Org and user tier keys must send an X-Tenant-ID header naming the organization the key was issued for.",
  "errors": null,
  "code": "API_KEY_MISSING"
}
Response fields (4)
FieldTypeDescription
successboolean

Example false.

messagestring

Example Invalid API key. Org and user tier keys must send an X-Tenant-ID header naming the organization the key was issued for..

errorsany or null

Null on this status.

codestring

Machine-readable reason, for branching on in client code.

One of: API_KEY_MISSING, API_KEY_INVALID, API_KEY_EXPIRED. Example API_KEY_MISSING.

403 Not allowed

Unauthorized — admin only

JSON
{
  "success": false,
  "message": "You don't have permission to access this endpoint. This API key is missing the 'shifts:edit' scope.",
  "errors": null,
  "code": ""
}
Response fields (4)
FieldTypeDescription
successboolean

Example false.

messagestring

Example You don't have permission to access this endpoint. This API key is missing the 'shifts:edit' scope..

errorsany or null

Null on this status.

codestring

Always empty on this status.

Example .

422 Validation failed

Provider is not currently marked as No Show, or FINANCIAL_CONSENT_REQUIRED when billed docs need affectFinancials

JSON
{
  "status": "error",
  "message": "Unable to save. Please check the highlighted fields",
  "errors": {
    "name": [
      "Please enter a name."
    ],
    "email": [
      "The email has already been taken."
    ]
  }
}
429 Too many requests

Rate limit exceeded. See Retry-After.

JSON
{
  "success": false,
  "message": "You've exceeded this API key's rate limit of 120 requests per minute. Try again in 37 seconds.",
  "errors": null,
  "code": "RATE_LIMITED"
}
Response fields (4)
FieldTypeDescription
successboolean

Example false.

messagestring

Example You've exceeded this API key's rate limit of 120 requests per minute. Try again in 37 seconds..

errorsany or null

Null on this status.

codestring

Machine-readable reason, for branching on in client code.

One of: RATE_LIMITED. Example RATE_LIMITED.

500 Server error

Internal server error

JSON
{
  "success": false,
  "message": "An unexpected error occurred — please try again.",
  "errors": null,
  "code": ""
}
Response fields (4)
FieldTypeDescription
successboolean

Example false.

messagestring

Example An unexpected error occurred — please try again..

errorsstring or null

Null in production. The exception message only when the application runs with debug on, so nothing is leaked to an integrator.

codestring

Always empty: the server-error response carries no error code.

Example .