OfficeGest
Workshop/Interventions

List interventions

Returns a paginated list of workshop interventions with optional filtering.

GET
/workshop/interventions
AuthorizationBearer <token>

In: header

Query Parameters

search?string
id?string
is_active?boolean
vat_id?string
department_id?string
service_order?string
description?stringDeprecated
estimated_time?numberDeprecated
created_at?stringDeprecated
Formatdate
updated_at?stringDeprecated
Formatdate
filter[description][operator]?string

Operators: sw, ew, ct, eq. Example: filter[description][sw]=value

filter[estimated_time][operator]?number

Operators: gte, lte, eq. Example: filter[estimated_time][gte]=value

filter[created_at][operator]?string

Operators: gte, lte, eq. Example: filter[created_at][gte]=value

Formatdate
filter[updated_at][operator]?string

Operators: gte, lte, eq. Example: filter[updated_at][gte]=value

Formatdate
page?integer

Page number. Default 1; a value below 1 counts as 1.

Default1
Range1 <= value
limit?integer

Items per page. Default 50, maximum 250; a larger value is truncated to 250.

Default50
Range1 <= value <= 250

Response Body

curl -X GET "https://og-tenant1.test:8003/api/v2/workshop/interventions?search=string&id=string&is_active=true&vat_id=string&department_id=string&service_order=string&description=string&estimated_time=0&created_at=2019-08-24&updated_at=2019-08-24&filter%5Bdescription%5D%5Boperator%5D=string&filter%5Bestimated_time%5D%5Boperator%5D=0&filter%5Bcreated_at%5D%5Boperator%5D=2019-08-24&filter%5Bupdated_at%5D%5Boperator%5D=2019-08-24&page=1&limit=50"
{
  "data": [
    {
      "id": 0,
      "description": "string",
      "estimated_time": 0,
      "value_without_vat": 0,
      "vat_id": 0,
      "is_active": true,
      "depends_on": [
        0
      ],
      "is_splittable": true,
      "sequence": 0,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ],
  "meta": {
    "per_page": 50,
    "current_page": 1,
    "has_more": true
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}
{
  "data": {
    "code": "VALIDATION_FAILED",
    "message": "The given data was invalid.",
    "errors": {
      "email": [
        "The email field is required."
      ]
    }
  },
  "meta": {
    "trace_id": "9f86d081884c7d659a2feaa0c55ad01568f3a1c2b4d5e"
  }
}