> For the complete documentation index, see [llms.txt](https://hub.equipme.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hub.equipme.io/development/api-reference-app/status-transition.md).

# Status transition

A **transition** permits one status change: from a source status to a target status. A ticket may only move where a transition exists — `PATCH /v1/tickets/{ticketId}` answers with `400` otherwise.

Transitions are directional. Permitting `open → in_progress` does not permit the way back; that needs its own transition.

## List permitted status changes

> Returns which status changes the tenant permits. A ticket may only move from one status to another if\
> a transition exists for that pair — \`PATCH /v1/tickets/{ticketId}\` answers with \`400\` otherwise.\
> \
> \*\*Filterable\*\* — paths into both ends, such as \`sourceStatus.name\` or \`targetStatus.isDefault\`.\
> \
> \*\*Sortable\*\* — \`sourceStatus.\<field>\` and \`targetStatus.\<field>\`, for example\
> \`sort=sourceStatus.position,targetStatus.position\`.<br>

```json
{"openapi":"3.1.0","info":{"title":"Solvio REST API","version":"1.0.0-beta"},"tags":[{"description":"A **transition** permits one status change: from a source status to a target status. A ticket may only\nmove where a transition exists — `PATCH /v1/tickets/{ticketId}` answers with `400` otherwise.\n\nTransitions are directional. Permitting `open → in_progress` does not permit the way back; that needs\nits own transition.\n","name":"ticket_status_transition"}],"servers":[{"description":"The host serving this document","url":"/api"}],"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Token issued by the central equipme authentication, sent as `Bearer <token>`.","scheme":"bearer","type":"http"},"ApiKeyAuth":{"description":"Static key for machine-to-machine access. Alternative to BearerAuth.","in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"v1.ListTicketStatusTransitionsResponse-domain_TicketStatusTransition":{"properties":{"count":{"type":"integer"},"data":{"items":{"$ref":"#/components/schemas/domain.TicketStatusTransition"},"type":"array","uniqueItems":false}},"type":"object"},"domain.TicketStatusTransition":{"properties":{"role":{"type":"string"},"sourceStatus":{"$ref":"#/components/schemas/domain.TicketStatus"},"targetStatus":{"$ref":"#/components/schemas/domain.TicketStatus"}},"type":"object"},"domain.TicketStatus":{"properties":{"allowedSourceStatuses":{"items":{"$ref":"#/components/schemas/domain.TicketStatus"},"type":"array","uniqueItems":false},"allowedTargetStatuses":{"items":{"$ref":"#/components/schemas/domain.TicketStatus"},"type":"array","uniqueItems":false},"color":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"displayName":{"type":"string"},"isDefault":{"type":"boolean"},"name":{"type":"string"},"position":{"type":"integer"},"tenant":{"$ref":"#/components/schemas/domain.Tenant"},"updatedAt":{"format":"date-time","type":"string"}},"type":"object"},"domain.Tenant":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"type":"object"},"middleware.ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/middleware.ErrorBody"}},"type":"object"},"middleware.ErrorBody":{"properties":{"code":{"description":"Code is the stable, machine-readable reason. Clients match on this, not on the message.","type":"string"},"details":{"description":"Details carries structured context where an error has any — a conflict names what it\ncollided with. Absent otherwise."},"message":{"type":"string"}},"type":"object"}}},"paths":{"/v1/ticket-status-transitions":{"get":{"description":"Returns which status changes the tenant permits. A ticket may only move from one status to another if\na transition exists for that pair — `PATCH /v1/tickets/{ticketId}` answers with `400` otherwise.\n\n**Filterable** — paths into both ends, such as `sourceStatus.name` or `targetStatus.isDefault`.\n\n**Sortable** — `sourceStatus.<field>` and `targetStatus.<field>`, for example\n`sort=sourceStatus.position,targetStatus.position`.\n","operationId":"listTicketStatusTransitions","parameters":[{"description":"JSON filter expression","in":"query","name":"filter","schema":{"type":"string"}},{"description":"Free-text term — no effect here","in":"query","name":"search","schema":{"type":"string"}},{"description":"Comma-separated field:direction terms","in":"query","name":"sort","schema":{"type":"string"}},{"description":"Selection of fields and relations","in":"query","name":"fields","schema":{"type":"string"}},{"description":"Number of entries to skip","in":"query","name":"offset","schema":{"default":0,"type":"integer"}},{"description":"Page size, 1 to 100","in":"query","name":"limit","schema":{"default":100,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.ListTicketStatusTransitionsResponse-domain_TicketStatusTransition"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Forbidden"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Internal Server Error"}},"summary":"List permitted status changes","tags":["ticket_status_transition"]}}}}
```

## Permit a status change

> Permits a status change from \`sourceStatusName\` to \`targetStatusName\`. Both statuses have to exist\
> and they have to differ, otherwise the request is answered with \`400\`. A transition that already\
> exists is answered with \`409\`.\
> \
> \`role\` restricts the transition to a role; leaving it out lets it apply to everyone.<br>

```json
{"openapi":"3.1.0","info":{"title":"Solvio REST API","version":"1.0.0-beta"},"tags":[{"description":"A **transition** permits one status change: from a source status to a target status. A ticket may only\nmove where a transition exists — `PATCH /v1/tickets/{ticketId}` answers with `400` otherwise.\n\nTransitions are directional. Permitting `open → in_progress` does not permit the way back; that needs\nits own transition.\n","name":"ticket_status_transition"}],"servers":[{"description":"The host serving this document","url":"/api"}],"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Token issued by the central equipme authentication, sent as `Bearer <token>`.","scheme":"bearer","type":"http"},"ApiKeyAuth":{"description":"Static key for machine-to-machine access. Alternative to BearerAuth.","in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"v1.AddTicketStatusTransitionRequest":{"properties":{"role":{"type":"string"},"sourceStatusName":{"type":"string"},"targetStatusName":{"type":"string"}},"required":["sourceStatusName","targetStatusName"],"type":"object"},"v1.AddTicketStatusTransitionResponse":{"properties":{"data":{"$ref":"#/components/schemas/domain.TicketStatusTransition"}},"type":"object"},"domain.TicketStatusTransition":{"properties":{"role":{"type":"string"},"sourceStatus":{"$ref":"#/components/schemas/domain.TicketStatus"},"targetStatus":{"$ref":"#/components/schemas/domain.TicketStatus"}},"type":"object"},"domain.TicketStatus":{"properties":{"allowedSourceStatuses":{"items":{"$ref":"#/components/schemas/domain.TicketStatus"},"type":"array","uniqueItems":false},"allowedTargetStatuses":{"items":{"$ref":"#/components/schemas/domain.TicketStatus"},"type":"array","uniqueItems":false},"color":{"type":"string"},"createdAt":{"format":"date-time","type":"string"},"displayName":{"type":"string"},"isDefault":{"type":"boolean"},"name":{"type":"string"},"position":{"type":"integer"},"tenant":{"$ref":"#/components/schemas/domain.Tenant"},"updatedAt":{"format":"date-time","type":"string"}},"type":"object"},"domain.Tenant":{"properties":{"id":{"type":"integer"},"name":{"type":"string"}},"type":"object"},"middleware.ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/middleware.ErrorBody"}},"type":"object"},"middleware.ErrorBody":{"properties":{"code":{"description":"Code is the stable, machine-readable reason. Clients match on this, not on the message.","type":"string"},"details":{"description":"Details carries structured context where an error has any — a conflict names what it\ncollided with. Absent otherwise."},"message":{"type":"string"}},"type":"object"}}},"paths":{"/v1/ticket-status-transitions":{"post":{"description":"Permits a status change from `sourceStatusName` to `targetStatusName`. Both statuses have to exist\nand they have to differ, otherwise the request is answered with `400`. A transition that already\nexists is answered with `409`.\n\n`role` restricts the transition to a role; leaving it out lets it apply to everyone.\n","operationId":"addTicketStatusTransition","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object"},{"$ref":"#/components/schemas/v1.AddTicketStatusTransitionRequest","summary":"request","description":"Status pair to permit"}]}}},"description":"Status pair to permit","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/v1.AddTicketStatusTransitionResponse"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Not Found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Conflict"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Permit a status change","tags":["ticket_status_transition"]}}}}
```

## Withdraw a permitted status change

> Withdraws a permitted status change. The pair is named in the body rather than in the path, because a\
> transition is identified by its two ends. Tickets already in the target status are unaffected — only\
> future moves are refused.<br>

```json
{"openapi":"3.1.0","info":{"title":"Solvio REST API","version":"1.0.0-beta"},"tags":[{"description":"A **transition** permits one status change: from a source status to a target status. A ticket may only\nmove where a transition exists — `PATCH /v1/tickets/{ticketId}` answers with `400` otherwise.\n\nTransitions are directional. Permitting `open → in_progress` does not permit the way back; that needs\nits own transition.\n","name":"ticket_status_transition"}],"servers":[{"description":"The host serving this document","url":"/api"}],"security":[{"BearerAuth":[]},{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Token issued by the central equipme authentication, sent as `Bearer <token>`.","scheme":"bearer","type":"http"},"ApiKeyAuth":{"description":"Static key for machine-to-machine access. Alternative to BearerAuth.","in":"header","name":"X-API-Key","type":"apiKey"}},"schemas":{"v1.DeleteTicketStatusTransitionRequest":{"properties":{"sourceStatusName":{"type":"string"},"targetStatusName":{"type":"string"}},"required":["sourceStatusName","targetStatusName"],"type":"object"},"middleware.ErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/middleware.ErrorBody"}},"type":"object"},"middleware.ErrorBody":{"properties":{"code":{"description":"Code is the stable, machine-readable reason. Clients match on this, not on the message.","type":"string"},"details":{"description":"Details carries structured context where an error has any — a conflict names what it\ncollided with. Absent otherwise."},"message":{"type":"string"}},"type":"object"}}},"paths":{"/v1/ticket-status-transitions":{"delete":{"description":"Withdraws a permitted status change. The pair is named in the body rather than in the path, because a\ntransition is identified by its two ends. Tickets already in the target status are unaffected — only\nfuture moves are refused.\n","operationId":"deleteTicketStatusTransition","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object"},{"$ref":"#/components/schemas/v1.DeleteTicketStatusTransitionRequest","summary":"request","description":"Status pair to withdraw"}]}}},"description":"Status pair to withdraw","required":true},"responses":{"204":{"description":"No Content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Bad Request"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Unauthorized"},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Forbidden"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Not Found"},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/middleware.ErrorResponse"}}},"description":"Internal Server Error"}},"summary":"Withdraw a permitted status change","tags":["ticket_status_transition"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://hub.equipme.io/development/api-reference-app/status-transition.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
