UNPKG

120 kBJSONView Raw
1{"openapi":"3.0.0","info":{"description":"API for a tool to craftsmen used to register working hours, material usage and quality assurance. \n# Endpoint\nThe endpoint `https://app.apacta.com/api/v1` should be used to communicate with the API. API access is only allowed with SSL encrypted connection (https).\n# Authentication\nURL query authentication with an API key is used, so appending `?api_key={api_key}` to the URL where `{api_key}` is found within Apacta settings is used for authentication\n# Pagination\nIf the endpoint returns a `pagination` object it means the endpoint supports pagination - currently it's only possible to change pages with `?page={page_number}` but implementing custom page sizes are on the road map.\n\n\n# Search/filter\nIs experimental but implemented in some cases - see the individual endpoints' docs for further explanation.\n# Ordering\nIs currently experimental, but on some endpoints it's implemented on URL querys so eg. to order Invoices by `invoice_number` appending `?sort=Invoices.invoice_number&direction=desc` would sort the list descending by the value of `invoice_number`.\n# Associations\nIs currently implemented on an experimental basis where you can append eg. `?include=Contacts,Projects` to the `/api/v1/invoices/` endpoint to embed `Contact` and `Project` objects directly.\n# Project Files\nCurrently project files can be retrieved from two endpoints. `/projects/{project_id}/files` handles files uploaded from wall posts or forms. `/projects/{project_id}/project_files` allows uploading and showing files, not belonging to specific form or wall post.\n# Errors/Exceptions\n## 422 (Validation)\nWrite something about how the `errors` object contains keys with the properties that failes validation like:\n```\n {\n \"success\": false,\n \"data\": {\n \"code\": 422,\n \"url\": \"/api/v1/contacts?api_key=5523be3b-30ef-425d-8203-04df7caaa93a\",\n \"message\": \"A validation error occurred\",\n \"errorCount\": 1,\n \"errors\": {\n \"contact_types\": [ ## Property name that failed validation\n \"Contacts must have at least one contact type\" ## Message with further explanation\n ]\n }\n }\n }\n```\n## Code examples\nRunning examples of how to retrieve the 5 most recent forms registered and embed the details of the User that made the form, and eventual products contained in the form\n### Swift\n```\n \n```\n### Java\n#### OkHttp\n```\n OkHttpClient client = new OkHttpClient();\n \n Request request = new Request.Builder()\n .url(\"https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5\")\n .get()\n .addHeader(\"x-auth-token\", \"{INSERT_YOUR_TOKEN}\")\n .addHeader(\"accept\", \"application/json\")\n .build();\n \n Response response = client.newCall(request).execute();\n```\n#### Unirest\n```\n HttpResponse<String> response = Unirest.get(\"https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5\")\n .header(\"x-auth-token\", \"{INSERT_YOUR_TOKEN}\")\n .header(\"accept\", \"application/json\")\n .asString();\n```\n### Javascript\n#### Native\n```\n var data = null;\n \n var xhr = new XMLHttpRequest();\n xhr.withCredentials = true;\n \n xhr.addEventListener(\"readystatechange\", function () {\n if (this.readyState === 4) {\n console.log(this.responseText);\n }\n });\n \n xhr.open(\"GET\", \"https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5\");\n xhr.setRequestHeader(\"x-auth-token\", \"{INSERT_YOUR_TOKEN}\");\n xhr.setRequestHeader(\"accept\", \"application/json\");\n \n xhr.send(data);\n```\n#### jQuery\n```\n var settings = {\n \"async\": true,\n \"crossDomain\": true,\n \"url\": \"https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5\",\n \"method\": \"GET\",\n \"headers\": {\n \"x-auth-token\": \"{INSERT_YOUR_TOKEN}\",\n \"accept\": \"application/json\",\n }\n }\n \n $.ajax(settings).done(function (response) {\n console.log(response);\n });\n```\n#### NodeJS (Request)\n```\n var request = require(\"request\");\n\n var options = { method: 'GET',\n url: 'https://app.apacta.com/api/v1/forms',\n qs: \n { extended: 'true',\n sort: 'Forms.created',\n direction: 'DESC',\n include: 'Products,CreatedBy',\n limit: '5' },\n headers: \n { accept: 'application/json',\n 'x-auth-token': '{INSERT_YOUR_TOKEN}' } };\n \n request(options, function (error, response, body) {\n if (error) throw new Error(error);\n \n console.log(body);\n });\n\n```\n### Python 3\n```\n import http.client\n \n conn = http.client.HTTPSConnection(\"app.apacta.com\")\n \n payload = \"\"\n \n headers = {\n 'x-auth-token': \"{INSERT_YOUR_TOKEN}\",\n 'accept': \"application/json\",\n }\n \n conn.request(\"GET\", \"/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5\", payload, headers)\n \n res = conn.getresponse()\n data = res.read()\n \n print(data.decode(\"utf-8\"))\n```\n### C#\n#### RestSharp\n```\n var client = new RestClient(\"https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5\");\n var request = new RestRequest(Method.GET);\n request.AddHeader(\"accept\", \"application/json\");\n request.AddHeader(\"x-auth-token\", \"{INSERT_YOUR_TOKEN}\");\n IRestResponse response = client.Execute(request); \n```\n### Ruby\n```\n require 'uri'\n require 'net/http'\n \n url = URI(\"https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5\")\n \n http = Net::HTTP.new(url.host, url.port)\n http.use_ssl = true\n http.verify_mode = OpenSSL::SSL::VERIFY_NONE\n \n request = Net::HTTP::Get.new(url)\n request[\"x-auth-token\"] = '{INSERT_YOUR_TOKEN}'\n request[\"accept\"] = 'application/json'\n \n response = http.request(request)\n puts response.read_body\n```\n### PHP (HttpRequest)\n```\n <?php\n\n $request = new HttpRequest();\n $request->setUrl('https://app.apacta.com/api/v1/forms');\n $request->setMethod(HTTP_METH_GET);\n \n $request->setQueryData(array(\n 'extended' => 'true',\n 'sort' => 'Forms.created',\n 'direction' => 'DESC',\n 'include' => 'Products,CreatedBy',\n 'limit' => '5'\n ));\n \n $request->setHeaders(array(\n 'accept' => 'application/json',\n 'x-auth-token' => '{INSERT_YOUR_TOKEN}'\n ));\n \n try {\n $response = $request->send();\n \n echo $response->getBody();\n } catch (HttpException $ex) {\n echo $ex;\n }\n```\n### Shell (cURL)\n```\n\n $ curl --request GET --url 'https://app.apacta.com/api/v1/forms?extended=true&sort=Forms.created&direction=DESC&include=Products%2CCreatedBy&limit=5' --header 'accept: application/json' --header 'x-auth-token: {INSERT_YOUR_TOKEN}'\n \n```","title":"Apacta","version":"0.0.1","x-apisguru-categories":["time_management","project_management"],"x-logo":{"url":"https://twitter.com/apactadk/profile_image?size=original"},"x-origin":[{"format":"swagger","url":"http://apidoc.apacta.com/swagger.yaml","version":"2.0"}],"x-providerName":"apacta.com"},"tags":[{"description":"Experimental","name":"TimeEntries"},{"description":"Experimental","name":"TimeEntryIntervals"},{"description":"Experimental","name":"TimeEntryTypes"},{"description":"Experimental","name":"TimeEntryUnitTypes"},{"description":"Experimental","name":"TimeEntryValueTypes"}],"paths":{"/cities":{"get":{"parameters":[{"description":"Used to search for a city with specific zip code","in":"query","name":"zip_code","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/City"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get list of cities supported in Apacta","tags":["Cities"]}},"/cities/{city_id}":{"get":{"parameters":[{"in":"path","name":"city_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/City"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get details about one city","tags":["Cities"]}},"/clocking_records":{"get":{"parameters":[{"description":"Used to search for active clocking records","in":"query","name":"active","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ClockingRecord"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get a list of clocking records","tags":["ClockingRecords"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"checkin_latitude":{"type":"string"},"checkin_longitude":{"type":"string"},"checkout_latitude":{"type":"string"},"checkout_longitude":{"type":"string"},"project_id":{"format":"uuid","type":"string"}},"type":"object"}}},"required":true},"responses":{"201":{"description":"Successfully added clocking record","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Create clocking record for authenticated user","tags":["ClockingRecords"]}},"/clocking_records/checkout":{"post":{"responses":{"201":{"description":"Successfully checked out","content":{"application/json":{"schema":{"properties":{"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Checkout active clocking record for authenticated user","tags":["ClockingRecords"]}},"/clocking_records/{clocking_record_id}":{"delete":{"parameters":[{"in":"path","name":"clocking_record_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete a clocking record","tags":["ClockingRecords"]},"get":{"parameters":[{"in":"path","name":"clocking_record_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ClockingRecord"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Clocking record not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Details of 1 clocking_record","tags":["ClockingRecords"]},"put":{"parameters":[{"in":"path","name":"clocking_record_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit a clocking record","tags":["ClockingRecords"]}},"/companies":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Company"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get a list of companies","tags":["Companies"]}},"/companies/{company_id}":{"get":{"parameters":[{"in":"path","name":"company_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Company object","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Company"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Company not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Details of 1 company","tags":["Companies"]}},"/companies/{company_id}/integration_feature_settings":{"get":{"parameters":[{"in":"path","name":"company_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/IntegrationFeatureSetting"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get a list of integration feature settings","tags":["Companies"]}},"/companies/{company_id}/integration_feature_settings/{integration_feature_setting_id}":{"get":{"parameters":[{"in":"path","name":"company_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"integration_feature_setting_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/IntegrationFeatureSetting"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"IntegrationFeatureSetting not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show details of 1 integration feature setting","tags":["Companies"]}},"/contact_types":{"get":{"parameters":[{"description":"Search for specific identifier value","in":"query","name":"identifier","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ContactType"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get list of contact types supported in Apacta","tags":["ContactTypes"]}},"/contact_types/{contact_type_id}":{"get":{"parameters":[{"in":"path","name":"contact_type_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ContactType"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get details about one contact type","tags":["ContactTypes"]}},"/contacts":{"get":{"parameters":[{"description":"Used to search for a contact with a specific name","in":"query","name":"name","required":false,"schema":{"type":"string"}},{"description":"Search for values in CVR field","in":"query","name":"cvr","schema":{"type":"string"}},{"description":"Search for values in EAN field","in":"query","name":"ean","schema":{"type":"string"}},{"description":"Search for values in ERP id field","in":"query","name":"erp_id","schema":{"type":"string"}},{"description":"Used to show only contacts with with one specific `ContactType`","in":"query","name":"contact_type","schema":{"type":"string","format":"uuid"}},{"description":"Used to show only contacts with with one specific `City`","in":"query","name":"city","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get a list of contacts","tags":["Contacts"]},"post":{"requestBody":{"$ref":"#/components/requestBodies/Contact"},"responses":{"201":{"description":"Successfully added contact","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add a new contact","tags":["Contacts"]}},"/contacts/{contact_id}":{"delete":{"parameters":[{"in":"path","name":"contact_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete a contact","tags":["Contacts"]},"get":{"parameters":[{"in":"path","name":"contact_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Contact"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Contact not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Details of 1 contact","tags":["Contacts"]},"put":{"parameters":[{"in":"path","name":"contact_id","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Contact"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit a contact","tags":["Contacts"]}},"/currencies":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Currency"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get list of currencies supported in Apacta","tags":["Currencies"]}},"/currencies/{currency_id}":{"get":{"parameters":[{"in":"path","name":"currency_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Currency"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get details about one currency","tags":["Currencies"]}},"/employee_hours":{"get":{"parameters":[{"description":"Date formatted as Y-m-d (2016-06-28)","in":"query","name":"date_from","required":true,"schema":{"type":"string"}},{"description":"Date formatted as Y-m-d (2016-06-28)","in":"query","name":"date_to","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"description":"One element per form in the period","items":{"properties":{"form_date":{"description":"Y-m-d formatted","format":"date","type":"string"},"form_id":{"format":"uuid","type":"string"},"project_name":{"type":"string"},"total_hours":{"description":"The amount of hours in seconds","format":"int32","type":"integer"},"working_description":{"description":"Trimmed at 50 characters","type":"string"},"working_description_full":{"description":"Full work description (if available)","type":"string"}},"type":"object"},"type":"array"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Used to retrieve details about the logged in user's hours","tags":["EmployeeHours"]}},"/expense_files":{"get":{"parameters":[{"in":"query","name":"created_by_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"expense_id","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ExpenseFile"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of expense files","tags":["ExpenseFiles"]},"post":{"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"},"description":{"type":"string"}},"required":["file"]}}}},"responses":{"201":{"description":"Successfully added file","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add file to expense","tags":["ExpenseFiles"]}},"/expense_files/{expense_file_id}":{"delete":{"parameters":[{"in":"path","name":"expense_file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete file","tags":["ExpenseFiles"]},"get":{"parameters":[{"in":"path","name":"expense_file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show file","tags":["ExpenseFiles"]},"put":{"parameters":[{"in":"path","name":"expense_file_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit file","tags":["ExpenseFiles"]}},"/expense_lines":{"get":{"parameters":[{"in":"query","name":"created_by_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"currency_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"expense_id","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ExpenseLine"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of expense lines","tags":["ExpenseLines"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"buying_price":{"format":"float","type":"number"},"currency_id":{"format":"uuid","type":"string"},"expense_id":{"format":"uuid","type":"string"},"quantity":{"format":"int32","type":"integer"},"selling_price":{"format":"float","type":"number"},"text":{"maxLength":255,"type":"string"}},"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add line to expense","tags":["ExpenseLines"]}},"/expense_lines/{expense_line_id}":{"delete":{"parameters":[{"in":"path","name":"expense_line_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ExpenseLine"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete expense line","tags":["ExpenseLines"]},"get":{"parameters":[{"in":"path","name":"expense_line_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ExpenseLine"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show expense line","tags":["ExpenseLines"]},"put":{"parameters":[{"in":"path","name":"expense_line_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ExpenseLine"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit expense line","tags":["ExpenseLines"]}},"/expenses":{"get":{"parameters":[{"in":"query","name":"created_by_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"company_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"contact_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"project_id","schema":{"type":"string","format":"uuid"}},{"description":"Created after date","in":"query","name":"gt_created","schema":{"type":"string","format":"date"}},{"description":"Created before date","in":"query","name":"lt_created","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Expense"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of expenses","tags":["Expenses"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"contact_id":{"format":"uuid","type":"string"},"currency_id":{"format":"uuid","type":"string"},"delivery_date":{"format":"date","type":"string"},"description":{"maxLength":8192,"type":"string"},"project_id":{"format":"uuid","type":"string"},"reference":{"maxLength":8192,"type":"string"},"short_text":{"maxLength":255,"type":"string"},"supplier_invoice_number":{"maxLength":255,"type":"string"}},"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add line to expense","tags":["Expenses"]}},"/expenses/{expense_id}":{"delete":{"parameters":[{"in":"path","name":"expense_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Expense"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete expense","tags":["Expenses"]},"get":{"parameters":[{"in":"path","name":"expense_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Expense"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show expense","tags":["Expenses"]},"put":{"parameters":[{"in":"path","name":"expense_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Expense"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit expense","tags":["Expenses"]}},"/expenses/{expense_id}/original_files":{"get":{"parameters":[{"in":"path","name":"expense_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of all OIOUBL files for the expense","tags":["Expense OIOUBL files"]}},"/expenses/{expense_id}/original_files/{file_id}":{"get":{"parameters":[{"in":"path","name":"expense_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show OIOUBL file","tags":["Expense OIOUBL files"]}},"/form_field_types":{"get":{"parameters":[{"description":"Used to filter on the `name` of the form_fields","in":"query","name":"name","required":false,"schema":{"type":"string"}},{"description":"Used to filter on the `identifier` of the form_fields","in":"query","name":"identifier","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FormFieldType"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get list of form field types","tags":["FormFieldTypes"]}},"/form_field_types/{form_field_type_id}":{"get":{"parameters":[{"in":"path","name":"form_field_type_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/FormFieldType"},"success":{"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get details about single `FormField`","tags":["FormFieldTypes"]}},"/form_fields":{"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"comment":{"maxLength":8192,"type":"string"},"content_value":{"maxLength":255,"type":"string"},"file_id":{"format":"uuid","type":"string"},"form_field_type_id":{"format":"uuid","type":"string"},"form_id":{"format":"uuid","type":"string"},"form_template_field_id":{"format":"uuid","type":"string"},"placement":{"format":"int32","type":"integer"}},"type":"object"}}}},"responses":{"201":{"description":"Successfully added field","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add a new field to a `Form`","tags":["FormFields"]}},"/form_fields/{form_field_id}":{"get":{"parameters":[{"in":"path","name":"form_field_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/FormField"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get details about single `FormField`","tags":["FormFields"]}},"/form_templates":{"get":{"parameters":[{"description":"Used to filter on the `name` of the form_templates","in":"query","name":"name","schema":{"type":"string"}},{"description":"Used to filter on the `identifier` of the form_templates","in":"query","name":"identifier","required":false,"schema":{"type":"string"}},{"description":"Used to filter on the `pdf_template_identifier` of the form_templates","in":"query","name":"pdf_template_identifier","schema":{"type":"string"}},{"description":"Used to filter on the `description` of the form_templates","in":"query","name":"description","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/FormTemplate"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get array of form_templates for your company","tags":["FormTemplates"]}},"/form_templates/{form_template_id}":{"get":{"parameters":[{"in":"path","name":"form_template_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/FormTemplate"},"success":{"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View one form template","tags":["FormTemplates"]}},"/forms":{"get":{"parameters":[{"description":"Used to have extended details from the forms from the `Form`'s `FormFields`","in":"query","name":"extended","schema":{"type":"string","enum":[true,false]}},{"description":"Used in conjunction with `date_to` to only show forms within these dates - format like `2016-28-05`","in":"query","name":"date_from","schema":{"type":"string","format":"Y-m-d"}},{"description":"Used in conjunction with `date_from` to only show forms within these dates - format like `2016-28-30`","in":"query","name":"date_to","schema":{"type":"string","format":"Y-m-d"}},{"description":"Used to filter on the `project_id` of the forms","in":"query","name":"project_id","schema":{"type":"string","format":"uuid"}},{"description":"Used to filter on the `created_by_id` of the forms","in":"query","name":"created_by_id","required":false,"schema":{"type":"string"}},{"description":"Used to filter on the `form_template_id` of the forms","in":"query","name":"form_template_id","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Form"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Retrieve array of forms","tags":["Forms"]},"post":{"description":"Used to add a form into the system","requestBody":{"content":{"application/json":{"schema":{"properties":{"form_template_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"}},"required":["project_id","form_template_id"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add new form","tags":["Forms"]}},"/forms/{form_id}":{"delete":{"description":"You can only delete the forms that you've submitted yourself","parameters":[{"in":"path","name":"form_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete a form","tags":["Forms"]},"get":{"parameters":[{"in":"path","name":"form_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Form"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View form","tags":["Forms"]},"put":{"parameters":[{"in":"path","name":"form_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK"}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit a form","tags":["Forms"]}},"/invoice_lines":{"get":{"parameters":[{"in":"query","name":"invoice_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"product_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"user_id","schema":{"type":"string","format":"uuid"}},{"in":"query","name":"name","schema":{"type":"string"}},{"in":"query","name":"discount_text","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/InvoiceLine"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View list of invoice lines","tags":["InvoiceLines"]},"post":{"requestBody":{"$ref":"#/components/requestBodies/InvoiceLine"},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add invoice","tags":["InvoiceLines"]}},"/invoice_lines/{invoice_line_id}":{"delete":{"parameters":[{"in":"path","name":"invoice_line_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete invoice line","tags":["InvoiceLines"]},"get":{"parameters":[{"in":"path","name":"invoice_line_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/InvoiceLine"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View invoice line","tags":["InvoiceLines"]},"put":{"parameters":[{"in":"path","name":"invoice_line_id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"$ref":"#/components/requestBodies/InvoiceLine"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit invoice line","tags":["InvoiceLines"]}},"/invoices":{"get":{"parameters":[{"description":"Used to filter on the `contact_id` of the invoices","in":"query","name":"contact_id","schema":{"type":"string","format":"uuid"}},{"description":"Used to filter on the `project_id` of the invoices","in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"}},{"description":"Used to filter on the `invoice_number` of the invoices","in":"query","name":"invoice_number","schema":{"type":"string"}},{"in":"query","name":"offer_number","schema":{"type":"string"}},{"in":"query","name":"is_draft","schema":{"type":"integer","enum":[0,1]}},{"in":"query","name":"is_offer","schema":{"type":"integer","enum":[0,1]}},{"in":"query","name":"is_locked","schema":{"type":"integer","enum":[0,1]}},{"in":"query","name":"date_from","schema":{"type":"string","format":"date"}},{"in":"query","name":"date_to","schema":{"type":"string","format":"date"}},{"in":"query","name":"issued_date","schema":{"type":"string","format":"date"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Invoice"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View list of invoices","tags":["Invoices"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"contact_id":{"format":"uuid","type":"string"},"created_or_modified_gte":{"format":"date","type":"string"},"date_from":{"format":"date","type":"string"},"date_to":{"format":"date","type":"string"},"erp_id":{"maxLength":255,"type":"string"},"erp_payment_term_id":{"maxLength":255,"type":"string"},"invoice_number":{"format":"int32","maxLength":8,"type":"integer"},"is_draft":{"type":"boolean"},"is_locked":{"type":"boolean"},"is_offer":{"type":"boolean"},"issued_date":{"format":"date","type":"string"},"message":{"maxLength":8192,"type":"string"},"offer_number":{"format":"int32","maxLength":8,"type":"integer"},"payment_due_date":{"format":"date","type":"string"},"payment_term_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"reference":{"maxLength":255,"type":"string"},"vat_percent":{"format":"int32","maxLength":2,"type":"integer"}},"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add invoice","tags":["Invoices"]}},"/invoices/{invoice_id}":{"delete":{"parameters":[{"in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete invoice","tags":["Invoices"]},"get":{"parameters":[{"in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Invoice"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View invoice","tags":["Invoices"]},"put":{"parameters":[{"in":"path","name":"invoice_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"contact_id":{"format":"uuid","type":"string"},"date_from":{"format":"date","type":"string"},"date_to":{"format":"date","type":"string"},"erp_id":{"maxLength":255,"type":"string"},"erp_payment_term_id":{"maxLength":255,"type":"string"},"invoice_number":{"format":"int32","maxLength":8,"type":"integer"},"is_draft":{"type":"boolean"},"is_locked":{"type":"boolean"},"is_offer":{"type":"boolean"},"issued_date":{"format":"date","type":"string"},"message":{"maxLength":8192,"type":"string"},"offer_number":{"format":"int32","maxLength":8,"type":"integer"},"payment_due_date":{"format":"date","type":"string"},"payment_term_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"reference":{"maxLength":255,"type":"string"},"vat_percent":{"format":"int32","maxLength":2,"type":"integer"}},"type":"object"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit invoice","tags":["Invoices"]}},"/mass_messages_users":{"get":{"parameters":[{"description":"Used to filter on the `is_read` of the mass messages","in":"query","name":"is_read","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MassMessagesUser"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View list of mass messages for specific user","tags":["MassMessagesUsers"]}},"/mass_messages_users/{mass_messages_user_id}":{"get":{"parameters":[{"in":"path","name":"mass_messages_user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/MassMessagesUser"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View mass message","tags":["MassMessagesUsers"]},"put":{"parameters":[{"in":"path","name":"mass_messages_user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit mass message","tags":["MassMessagesUsers"]}},"/materials":{"get":{"parameters":[{"description":"Used to filter on the `barcode` of the materials","in":"query","name":"barcode","required":false,"schema":{"type":"string"}},{"description":"Used to filter on the `name` of the materials","in":"query","name":"name","required":false,"schema":{"type":"string"}},{"description":"Used to find materials used in specific project by `project_id`","in":"query","name":"project_id","required":false,"schema":{"type":"string","format":"uuid"}},{"description":"Used to find currently rented materials","in":"query","name":"currently_rented","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Material"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View list of all materials","tags":["Materials"]}},"/materials/{material_id}":{"delete":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete material","tags":["Materials"]},"get":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Material"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View material","tags":["Materials"]},"put":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit material","tags":["Materials"]}},"/materials/{material_id}/rentals/":{"get":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/MaterialRental"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of rentals for specific material","tags":["MaterialRentals"]},"post":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"form_id":{"format":"uuid","type":"string"},"from_date":{"format":"dateTime","type":"string"},"is_invoiced":{"format":"dateTime","type":"string"},"material_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"quantity":{"format":"float","type":"number"},"to_date":{"format":"dateTime","type":"string"}},"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add material rental","tags":["MaterialRentals"]}},"/materials/{material_id}/rentals/checkout/":{"post":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"form_id":{"format":"uuid","type":"string"},"material_rental_id":{"format":"uuid","type":"string"},"to_date":{"format":"dateTime","type":"string"}},"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Checkout material rental","tags":["MaterialRentals"]}},"/materials/{material_id}/rentals/{material_rental_id}/":{"delete":{"description":"Delete rental for material","parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"material_rental_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete material rental","tags":["MaterialRentals"]},"get":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"material_rental_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/MaterialRental"},"success":{"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show rental foor materi","tags":["MaterialRentals"]},"post":{"parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"material_rental_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"barcode":{"type":"string"},"billing_cysle":{"enum":["hourly","daily","weekly"],"type":"string"},"cost_price":{"format":"float","type":"number"},"description":{"type":"string"},"is_single_usage":{"type":"boolean"},"name":{"type":"string"},"selling_price":{"format":"float","type":"number"}},"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add material","tags":["Materials"]},"put":{"description":"Edit material rental","parameters":[{"in":"path","name":"material_id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"material_rental_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit material rental","tags":["MaterialRentals"]}},"/payment_term_types":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PaymentTermType"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get a list of payment term types","tags":["PaymentTermTypes"]}},"/payment_term_types/{payment_term_type_id}":{"get":{"parameters":[{"in":"path","name":"payment_term_type_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/PaymentTermType"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Details of 1 payment term type","tags":["PaymentTermTypes"]}},"/payment_terms":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/PaymentTerm"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get a list of payment terms","tags":["PaymentTerms"]}},"/payment_terms/{payment_term_id}":{"get":{"parameters":[{"in":"path","name":"payment_term_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/PaymentTerm"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"PaymentTerm not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Details of 1 payment term","tags":["PaymentTerms"]}},"/ping":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"status":{"default":"ok","type":"string"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Check if API is up and API key works","tags":["Ping"]}},"/products":{"get":{"parameters":[{"description":"Used to filter on the `name` of the products","in":"query","name":"name","schema":{"type":"string"}},{"description":"Used to filter on the `product_number` of the products","in":"query","name":"product_number","schema":{"type":"string","format":"uuid"}},{"description":"Used to filter on the `barcode` of the products","in":"query","name":"barcode","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Product"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List products","tags":["Products"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"barcode":{"maxLength":255,"type":"string"},"buying_price":{"format":"double","type":"number"},"description":{"maxLength":8192,"type":"string"},"erp_id":{"maxLength":255,"type":"string"},"name":{"maxLength":255,"type":"string"},"product_number":{"maxLength":255,"type":"string"},"selling_price":{"format":"double","type":"number"}},"required":["name"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add new product","tags":["Products"]}},"/products/{product_id}":{"delete":{"parameters":[{"in":"path","name":"product_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete a product","tags":["Products"]},"get":{"parameters":[{"in":"path","name":"product_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Product"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View single product","tags":["Products"]},"put":{"parameters":[{"in":"path","name":"product_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit a product","tags":["Products"]}},"/project_statuses":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ProjectStatus"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get list of project statuses","tags":["ProjectStatuses"]}},"/project_statuses/{project_status_id}":{"get":{"parameters":[{"in":"path","name":"project_status_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/ProjectStatus"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get details about one contact type","tags":["ProjectStatuses"]}},"/projects":{"get":{"parameters":[{"description":"Unless this is set to `true` only open projects will be shown","in":"query","name":"show_all","required":false,"schema":{"type":"boolean","default":false}},{"description":"Used to filter on the `contact_id` of the projects","in":"query","name":"contact_id","schema":{"type":"string","format":"uuid"}},{"description":"Used to filter on the `project_status_id` of the projects","in":"query","name":"project_status_id","schema":{"type":"string","format":"uuid"}},{"description":"Used to filter on the `project_status_id` of the projects (match any of the provided values)","in":"query","name":"project_status_ids","style":"form","explode":false,"schema":{"type":"array","items":{"format":"uuid","type":"string"}}},{"description":"Used to search on the `name` of the projects","in":"query","name":"name","schema":{"type":"string"}},{"description":"Used to search on the `erp_project_id` of the projects","in":"query","name":"erp_project_id","schema":{"type":"string"}},{"description":"Used to search on the `erp_task_id` of the projects","in":"query","name":"erp_task_id","schema":{"type":"string"}},{"description":"Show projects with start time after than this value","in":"query","name":"start_time_gte","schema":{"type":"string"}},{"description":"Show projects with start time before this value","in":"query","name":"start_time_lte","schema":{"type":"string"}},{"description":"Show only projects with start time on specific date","in":"query","name":"start_time_eq","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Project"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View list of projects","tags":["Projects"]},"post":{"requestBody":{"$ref":"#/components/requestBodies/Project"},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add a project","tags":["Projects"]}},"/projects/{project_id}":{"delete":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete a project","tags":["Projects"]},"get":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/Project"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View specific project","tags":["Projects"]},"put":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"$ref":"#/components/requestBodies/Project"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit a project","tags":["Projects"]}},"/projects/{project_id}/files":{"get":{"description":"Used to show files uploaded to a project from wall post or form","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of files uploaded to project","tags":["Projects"]}},"/projects/{project_id}/files/{file_id}/":{"delete":{"description":"Delete file uploaded to a project from wall post or form","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete file","tags":["Projects"]},"get":{"description":"Show file uploaded to a project from wall post or form","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show file","tags":["Projects"]},"put":{"description":"Edit file uploaded to a project from wall post or form","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"file_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit file","tags":["Projects"]}},"/projects/{project_id}/project_files":{"get":{"description":"Returns files belonging to the project, not uploaded from wall post or form","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of project files uploaded to project","tags":["Projects"]},"post":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary"}},"required":["file"]}}}},"responses":{"201":{"description":"Successfully added project file","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add project file to projects","tags":["Projects"]}},"/projects/{project_id}/project_files/{project_file_id}/":{"delete":{"parameters":[{"in":"path","name":"project_file_id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete project file","tags":["Projects"]},"get":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"project_file_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorNotFound"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show project file","tags":["Projects"]},"put":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"path","name":"project_file_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit project file","tags":["Projects"]}},"/projects/{project_id}/users/":{"get":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/User"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Show list of users added to project","tags":["Projects"]},"post":{"parameters":[{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"user_id":{"format":"uuid","type":"string"}},"required":["user_id"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add user to project","tags":["Projects"]}},"/projects/{project_id}/users/{user_id}":{"delete":{"parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete user from project","tags":["Projects"]},"get":{"parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"project_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/User"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View specific user assigned to project","tags":["Projects"]}},"/stock_locations":{"get":{"parameters":[{"description":"Used to filter on the `name` of the stock_locations","in":"query","name":"name","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/StockLocation"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List stock_locations","tags":["StockLocations"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"maxLength":255,"type":"string"}},"required":["name"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add new stock_locations","tags":["StockLocations"]}},"/stock_locations/{location_id}":{"delete":{"parameters":[{"in":"path","name":"location_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete location","tags":["StockLocations"]},"get":{"parameters":[{"in":"path","name":"location_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/StockLocation"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View single location","tags":["StockLocations"]},"put":{"parameters":[{"in":"path","name":"location_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit location","tags":["StockLocations"]}},"/time_entries":{"get":{"parameters":[{"in":"query","name":"user_id","schema":{"type":"string"}},{"in":"query","name":"form_id","schema":{"type":"string"}},{"in":"query","name":"project_id","schema":{"type":"string"}},{"in":"query","name":"gt_from_time","schema":{"type":"string"}},{"in":"query","name":"lt_from_time","schema":{"type":"string"}},{"in":"query","name":"gt_to_time","schema":{"type":"string"}},{"in":"query","name":"lt_to_time","schema":{"type":"string"}},{"in":"query","name":"lt_sum","schema":{"type":"string"}},{"in":"query","name":"gt_sum","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimeEntry"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List time entries","tags":["TimeEntries"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"form_id":{"format":"uuid","type":"string"},"from_time":{"format":"dateTime","type":"string"},"is_all_day":{"type":"boolean"},"project_id":{"format":"uuid","type":"string"},"sum":{"description":"Amount of seconds - should only be included when using is_all_day, otherwise will be calculated from from_time and to_time","format":"int32","type":"integer"},"time_entry_type_id":{"format":"uuid","type":"string"},"to_time":{"format":"dateTime","type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["user_id","time_entry_type_id"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add new time entry","tags":["TimeEntries"]}},"/time_entries/{time_entry_id}":{"delete":{"parameters":[{"in":"path","name":"time_entry_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete time entry","tags":["TimeEntries"]},"get":{"parameters":[{"in":"path","name":"time_entry_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TimeEntry"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View time entry","tags":["TimeEntries"]},"put":{"parameters":[{"in":"path","name":"time_entry_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit time entry","tags":["TimeEntries"]}},"/time_entry_intervals":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimeEntryInterval"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List possible time entry intervals","tags":["TimeEntryIntervals"]}},"/time_entry_intervals/{time_entry_interval_id}":{"get":{"parameters":[{"in":"path","name":"time_entry_interval_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TimeEntryInterval"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View time entry interval","tags":["TimeEntryIntervals"]}},"/time_entry_types":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimeEntryType"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List time entries types","tags":["TimeEntryTypes"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"description":{"maxLength":8192,"type":"string"},"name":{"maxLength":255,"type":"string"},"time_entry_interval_id":{"format":"uuid","type":"string"},"time_entry_value_type_id":{"format":"uuid","type":"string"}},"required":["time_entry_interval_id","time_entry_value_type_id","name"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add new time entry type","tags":["TimeEntryTypes"]}},"/time_entry_types/{time_entry_type_id}":{"delete":{"parameters":[{"in":"path","name":"time_entry_type_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete time entry type","tags":["TimeEntryTypes"]},"get":{"parameters":[{"in":"path","name":"time_entry_type_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TimeEntryType"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View time entry type","tags":["TimeEntryTypes"]},"put":{"parameters":[{"in":"path","name":"time_entry_type_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit time entry type","tags":["TimeEntryTypes"]}},"/time_entry_unit_types":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimeEntryUnitType"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List possible time entry unit types","tags":["TimeEntryUnitTypes"]}},"/time_entry_unit_types/{time_entry_unit_type_id}":{"get":{"parameters":[{"in":"path","name":"time_entry_unit_type_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TimeEntryUnitType"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View time entry unit type","tags":["TimeEntryUnitTypes"]}},"/time_entry_value_types":{"get":{"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/TimeEntryValueType"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List possible time entry value types","tags":["TimeEntryValueTypes"]}},"/time_entry_value_types/{time_entry_value_type_id}":{"get":{"parameters":[{"in":"path","name":"time_entry_value_type_id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/TimeEntryValueType"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View time entry value type","tags":["TimeEntryValueTypes"]}},"/users":{"get":{"parameters":[{"description":"Used to filter on the `first_name` of the users","in":"query","name":"first_name","required":false,"schema":{"type":"string"}},{"description":"Used to filter on the `last_name` of the users","in":"query","name":"last_name","required":false,"schema":{"type":"string"}},{"description":"Used to filter on the `email` of the users","in":"query","name":"email","schema":{"type":"string"}},{"description":"Used to filter on the `stock_location_id` of the users","in":"query","name":"stock_location_id","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/User"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Get list of users in company","tags":["Users"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"city_id":{"format":"uuid","type":"string"},"cost_price":{"description":"Cost of salaries","format":"float","type":"number"},"email":{"format":"email","maxLength":255,"type":"string"},"extra_price":{"description":"Additional cost on this employee (pension, vacation etc.)","format":"float","type":"number"},"first_name":{"maxLength":255,"type":"string"},"is_active":{"type":"boolean"},"language_id":{"format":"uuid","type":"string"},"last_name":{"maxLength":255,"type":"string"},"mobile":{"maxLength":32,"type":"string"},"mobile_countrycode":{"maxLength":8,"type":"string"},"password":{"format":"password","maxLength":255,"type":"string"},"phone":{"maxLength":32,"type":"string"},"phone_countrycode":{"maxLength":8,"type":"string"},"receive_form_mails":{"description":"If `true` the employee will receive an email receipt of every form submitted","type":"boolean"},"sale_price":{"description":"The price this employee costs per hour when working","format":"float","type":"number"},"street_name":{"maxLength":255,"type":"string"}},"required":["first_name"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add user to company","tags":["Users"]}},"/users/{user_id}":{"delete":{"parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Delete user","tags":["Users"]},"get":{"parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/User"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View user","tags":["Users"]},"put":{"parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"type":"object"},"type":"array"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Edit user","tags":["Users"]}},"/vendor_products":{"get":{"parameters":[{"description":"Used to filter on the `name` of the vendor products","in":"query","name":"name","schema":{"type":"string"}},{"description":"Used to filter on the `product_number` of the vendor products","in":"query","name":"product_number","schema":{"type":"string","format":"uuid"}},{"description":"Used to filter on the `barcode` of the vendor products","in":"query","name":"barcode","schema":{"type":"string"}},{"description":"Used to filter on the `vendor_id` of the vendor products","in":"query","name":"vendor_id","schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/VendorProduct"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"List vendor products","tags":["VendorProducts"]}},"/vendor_products/{vendor_product_id}":{"get":{"parameters":[{"in":"path","name":"vendor_product_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/VendorProduct"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View single vendor product","tags":["VendorProducts"]}},"/wall_comments":{"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string"},"wall_post_id":{"format":"uuid","type":"string"}},"required":["wall_post_id","message"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add wall comment","tags":["WallComments"]}},"/wall_comments/{wall_comment_id}":{"get":{"parameters":[{"in":"path","name":"wall_comment_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WallComment"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View wall comment","tags":["WallComments"]}},"/wall_posts":{"get":{"parameters":[{"in":"query","name":"project_id","required":true,"schema":{"type":"string","format":"uuid"}},{"in":"query","name":"user_id","schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WallPost"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}},"401":{"description":"Not authorized to access project"},"404":{"description":"Project not found"}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View list of wall posts","tags":["WallPosts"]},"post":{"requestBody":{"content":{"application/json":{"schema":{"properties":{"message":{"type":"string"},"project_id":{"format":"uuid","type":"string"}},"required":["project_id","message"],"type":"object"}}}},"responses":{"201":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"properties":{"id":{"format":"uuid","type":"string"}},"type":"object"},"success":{"default":true,"type":"boolean"}},"type":"object"}}}},"422":{"description":"Validation error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorValidation"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"Add a wall post","tags":["WallPosts"]}},"/wall_posts/{wall_post_id}":{"get":{"parameters":[{"in":"path","name":"wall_post_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/WallPost"},"success":{"type":"boolean"}},"type":"object"}}}}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"View wall post","tags":["WallPosts"]}},"/wall_posts/{wall_post_id}/wall_comments":{"get":{"parameters":[{"in":"path","name":"wall_post_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"properties":{"data":{"items":{"$ref":"#/components/schemas/WallComment"},"type":"array"},"pagination":{"$ref":"#/components/schemas/PaginationDetails"},"success":{"type":"boolean"}},"type":"object"}}}},"401":{"description":"Not authorized to access project"},"404":{"description":"Wall post not found"}},"security":[{"X-Auth-Token":[]},{"api_key":[]}],"summary":"See wall comments to a wall post","tags":["WallPosts"]}}},"servers":[{"url":"https://app.apacta.com/api/v1"}],"components":{"requestBodies":{"InvoiceLine":{"content":{"application/json":{"schema":{"properties":{"description":{"maxLength":8192,"type":"string"},"discount_percent":{"format":"int32","type":"integer"},"discount_text":{"maxLength":255,"type":"string"},"invoice_id":{"format":"uuid","type":"string"},"name":{"maxLength":2048,"type":"string"},"product_id":{"format":"uuid","type":"string"},"quantity":{"format":"int32","type":"integer"},"selling_price":{"format":"float","type":"number"},"user_id":{"format":"uuid","type":"string"}},"type":"object"}}}},"Project":{"content":{"application/json":{"schema":{"properties":{"contact_id":{"format":"uuid","type":"string"},"description":{"maxLength":8192,"type":"string"},"erp_project_id":{"maxLength":255,"type":"string"},"erp_task_id":{"maxLength":255,"type":"string"},"name":{"maxLength":255,"type":"string"},"project_status_id":{"format":"uuid","type":"string"},"start_time":{"format":"datetime","type":"string"},"street_name":{"maxLength":255,"type":"string"}},"required":["name"],"type":"object"}}}},"Contact":{"content":{"application/json":{"schema":{"properties":{"address":{"description":"Street address","maxLength":255,"type":"string"},"city_id":{"format":"uuid","type":"string"},"contact_types":{"properties":{"_ids":{"items":{"type":"string"},"type":"array"}},"type":"object"},"cvr":{"maxLength":255,"type":"string"},"description":{"maxLength":8192,"type":"string"},"email":{"maxLength":255,"type":"string"},"erp_id":{"description":"If company has integration to an ERP system, and the contacts are synchronized, this will be the ERP-systems ID of this contact","maxLength":255,"type":"string"},"name":{"maxLength":255,"type":"string"},"phone":{"description":"Format like eg. `28680133` or `046158971404`","maxLength":32,"type":"string"},"website":{"maxLength":255,"type":"string"}},"type":"object"}}}}},"securitySchemes":{"X-Auth-Token":{"in":"header","name":"X-Auth-Token","type":"apiKey"},"api_key":{"description":"Uses the user's API token found from within the control panel in \"settings\" -> \"additional settings\"","in":"query","name":"api_token","type":"apiKey"}},"schemas":{"City":{"properties":{"created":{"$ref":"#/components/schemas/created"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"},"zip_code":{"maxLength":11,"type":"integer"}},"type":"object"},"ClockingRecord":{"properties":{"checked_in":{"format":"dateTime","type":"string"},"checked_out":{"format":"dateTime","type":"string"},"checkin_latitude":{"type":"string"},"checkin_longitude":{"type":"string"},"checkout_latitude":{"type":"string"},"checkout_longitude":{"type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"user_id":{"format":"uuid","type":"string"}},"type":"object"},"Company":{"properties":{"city_id":{"format":"uuid","type":"string"},"contact_person_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"cvr":{"maxLength":255,"type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"expired":{"format":"date-time","type":"string"},"file_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"invoice_email":{"format":"email","maxLength":255,"type":"string"},"language_id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"},"next_invoice_number":{"format":"int32","maxLength":8,"type":"integer"},"phone":{"description":"Format like eg. `28680133` or `046158971404`","maxLength":32,"type":"string"},"phone_countrycode":{"description":"Format like eg. `45` or `49`","maxLength":3,"type":"string"},"receive_form_mails":{"format":"email","maxLength":255,"type":"string"},"street_name":{"maxLength":255,"type":"string"},"vat_percent":{"format":"int32","maxLength":12,"type":"integer"},"website":{"maxLength":255,"type":"string"}},"type":"object"},"Contact":{"properties":{"address":{"description":"Street address","maxLength":255,"type":"string"},"city_id":{"format":"uuid","type":"string"},"company_id":{"description":"Only filled out if this represents another company within Apacta (used for partners)","format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"cvr":{"maxLength":255,"type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"email":{"maxLength":255,"type":"string"},"erp_id":{"description":"If company has integration to an ERP system, and the contacts are synchronized, this will be the ERP-systems ID of this contact","maxLength":255,"type":"string"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"},"phone":{"description":"Format like eg. `28680133` or `046158971404`","maxLength":32,"type":"string"},"website":{"maxLength":255,"type":"string"}},"type":"object"},"ContactType":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"description":"One of 3 values","enum":["client","partner","supplier"],"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"Currency":{"properties":{"created":{"$ref":"#/components/schemas/created"},"currency_sign":{"maxLength":8,"type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"ErrorNotFound":{"properties":{"data":{"properties":{"code":{"description":"The HTTP status code","type":"integer"},"message":{"default":"A validation error occurred","description":"Error message","type":"string"},"url":{"description":"The url from which this originated","type":"string"}},"type":"object"},"success":{"default":false,"type":"boolean"}},"type":"object"},"ErrorValidation":{"properties":{"data":{"properties":{"code":{"description":"The HTTP status code","type":"integer"},"errorCount":{"description":"The amount of validation errors","type":"integer"},"errors":{"description":"Object that contains details information about which properties failed validation and what rules they failed.","type":"object"},"message":{"default":"A validation error occurred","description":"Error message","type":"string"},"url":{"description":"The url from which this originated","type":"string"}},"type":"object"},"success":{"default":false,"type":"boolean"}},"type":"object"},"Expense":{"properties":{"company_id":{"description":"Read-only","format":"uuid","type":"string"},"contact_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"currency_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"delivery_date":{"format":"date","type":"string"},"description":{"maxLength":8192,"type":"string"},"id":{"description":"Read-only","format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"project_id":{"format":"uuid","type":"string"},"reference":{"maxLength":8192,"type":"string"},"short_text":{"maxLength":255,"type":"string"},"supplier_invoice_number":{"maxLength":255,"type":"string"}},"type":"object"},"ExpenseFile":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"expense_id":{"format":"uuid","type":"string"},"file":{"description":"File's name","maxLength":255,"type":"string"},"file_extension":{"maxLength":255,"type":"string"},"file_original_name":{"maxLength":255,"type":"string"},"file_size":{"description":"File size in bytes","maxLength":255,"type":"string"},"file_type":{"description":"File's MIME type","maxLength":255,"type":"string"},"file_url":{"description":"Read-only","maxLength":255,"type":"string"},"id":{"description":"Read-only","format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"}},"type":"object"},"ExpenseLine":{"properties":{"buying_price":{"format":"float","type":"number"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"currency_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"expense_id":{"format":"uuid","type":"string"},"id":{"description":"Read-only","format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"quantity":{"format":"int32","type":"integer"},"selling_price":{"format":"float","type":"number"},"text":{"maxLength":255,"type":"string"}},"type":"object"},"Form":{"properties":{"approved_by_id":{"format":"uuid","type":"string"},"company_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"form_date":{"format":"date","type":"string"},"form_template_id":{"format":"uuid","type":"string"},"id":{"description":"Read-only","format":"uuid","type":"string"},"is_draft":{"default":false,"type":"boolean"},"is_invoiced":{"default":false,"type":"boolean"},"is_shared":{"default":false,"type":"boolean"},"mass_form_id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"project_id":{"format":"uuid","type":"string"}},"type":"object"},"FormField":{"properties":{"comment":{"maxLength":8192,"type":"string"},"content_value":{"maxLength":255,"type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"file_id":{"format":"uuid","type":"string"},"form_field_type_id":{"format":"uuid","type":"string"},"form_id":{"format":"uuid","type":"string"},"form_template_field_id":{"format":"uuid","type":"string"},"id":{"description":"Read-only","format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"placement":{"format":"int32","type":"integer"}},"type":"object"},"FormFieldType":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"description":"Read-only","format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"description":"Read-only","format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"FormTemplate":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"form_category_id":{"format":"uuid","type":"string"},"form_overview_category_id":{"format":"uuid","type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"is_active":{"type":"boolean"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"},"pdf_template_identifier":{"maxLength":255,"type":"string"}},"type":"object"},"IntegrationFeatureSetting":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"default_value":{"maxLength":255,"type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"integration_feature_id":{"format":"uuid","type":"string"},"is_custom_setting":{"type":"boolean"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"Invoice":{"properties":{"company_id":{"format":"uuid","type":"string"},"contact_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"currency_id":{"format":"uuid","type":"string"},"date_from":{"format":"date","type":"string"},"date_to":{"format":"date","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"erp_id":{"maxLength":255,"type":"string"},"erp_payment_term_id":{"maxLength":255,"type":"string"},"eu_customer":{"type":"boolean"},"gross_payment":{"format":"float","type":"number"},"id":{"format":"uuid","type":"string"},"integration_id":{"format":"uuid","type":"string"},"invoice_number":{"format":"int32","maxLength":8,"type":"integer"},"is_draft":{"type":"boolean"},"is_locked":{"type":"boolean"},"is_offer":{"type":"boolean"},"issued_date":{"format":"date","type":"string"},"message":{"maxLength":8192,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"net_payment":{"format":"float","type":"number"},"offer_number":{"format":"int32","maxLength":8,"type":"integer"},"payment_due_date":{"format":"date","type":"string"},"payment_term_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"reference":{"maxLength":255,"type":"string"},"vat_percent":{"format":"int32","maxLength":2,"type":"integer"}},"type":"object"},"InvoiceLine":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"discount_percent":{"format":"int32","type":"integer"},"discount_text":{"maxLength":255,"type":"string"},"id":{"format":"uuid","type":"string"},"invoice_id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":2048,"type":"string"},"product_id":{"format":"uuid","type":"string"},"quantity":{"format":"int32","type":"integer"},"selling_price":{"format":"float","type":"number"},"user_id":{"format":"uuid","type":"string"}},"type":"object"},"MassMessage":{"properties":{"company_id":{"format":"uuid","type":"string"},"content":{"maxLength":8192,"type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"}},"type":"object"},"MassMessagesUser":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"is_read":{"type":"boolean"},"is_sent_email":{"type":"boolean"},"mass_message":{"$ref":"#/components/schemas/MassMessage"},"mass_message_id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"user_id":{"format":"uuid","type":"string"}},"type":"object"},"Material":{"properties":{"barcode":{"maxLength":255,"type":"string"},"billing_cycle":{"maxLength":255,"type":"string"},"company_id":{"format":"uuid","type":"string"},"cost_price":{"format":"float","type":"number"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"is_single_usage":{"type":"boolean"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"name":{"maxLength":2048,"type":"string"},"selling_price":{"format":"float","type":"number"}},"type":"object"},"MaterialRental":{"properties":{"amount":{"format":"float","type":"number"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"from_date":{"format":"dateTime","type":"string"},"id":{"format":"uuid","type":"string"},"is_invoiced":{"format":"dateTime","type":"string"},"material_id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"quantity":{"format":"float","type":"number"},"to_date":{"format":"dateTime","type":"string"}},"type":"object"},"PaginationDetails":{"properties":{"count":{"type":"integer"},"current_page":{"type":"string"},"has_next_page":{"type":"boolean"},"has_prev_page":{"type":"boolean"},"limit":{"type":"integer"},"page_count":{"type":"string"}},"type":"object"},"PaymentTerm":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"days_of_credit":{"format":"int32","maxLength":11,"type":"integer"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"payment_term_type_id":{"format":"uuid","type":"string"}},"type":"object"},"PaymentTermType":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"Product":{"properties":{"barcode":{"maxLength":255,"type":"string"},"buying_price":{"format":"double","type":"number"},"company_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"erp_id":{"maxLength":255,"type":"string"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"},"product_number":{"maxLength":255,"type":"string"},"selling_price":{"format":"double","type":"number"}},"type":"object"},"Project":{"properties":{"contact_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"erp_project_id":{"maxLength":255,"type":"string"},"erp_task_id":{"maxLength":255,"type":"string"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"},"project_status_id":{"format":"uuid","type":"string"},"start_time":{"format":"datetime","type":"string"},"street_name":{"maxLength":255,"type":"string"}},"required":["id","name"],"type":"object"},"ProjectStatus":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"description":"One of 3 values","enum":["ready_for_billing","open","closed"],"maxLength":255,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"StockLocation":{"properties":{"company_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"TimeEntry":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"form_id":{"format":"uuid","type":"string"},"from_time":{"format":"dateTime","type":"string"},"id":{"format":"uuid","type":"string"},"is_all_day":{"type":"boolean"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"sum":{"description":"Amount of seconds","format":"int32","type":"integer"},"time_entry_type_id":{"format":"uuid","type":"string"},"to_time":{"format":"dateTime","type":"string"},"user_id":{"format":"uuid","type":"string"}},"type":"object"},"TimeEntryInterval":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"TimeEntryType":{"properties":{"company_id":{"format":"uuid","type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"name":{"maxLength":255,"type":"string"},"time_entry_interval_id":{"format":"uuid","type":"string"},"time_entry_value_type_id":{"format":"uuid","type":"string"}},"type":"object"},"TimeEntryUnitType":{"properties":{"abbreviation":{"maxLength":255,"type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"name":{"maxLength":255,"type":"string"}},"type":"object"},"TimeEntryValueType":{"properties":{"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":8192,"type":"string"},"id":{"format":"uuid","type":"string"},"identifier":{"maxLength":255,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"modified_by_id":{"format":"uuid","type":"string"},"name":{"maxLength":255,"type":"string"},"time_entry_unit_type_id":{"format":"uuid","type":"string"}},"type":"object"},"User":{"properties":{"api_key":{"format":"uuid","type":"string"},"city_id":{"format":"uuid","type":"string"},"company_id":{"format":"uuid","type":"string"},"cost_price":{"description":"Cost of salaries","format":"float","type":"number"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"email":{"format":"email","maxLength":255,"type":"string"},"extra_price":{"description":"Additional cost on this employee (pension, vacation etc.)","format":"float","type":"number"},"first_name":{"maxLength":255,"type":"string"},"full_name":{"description":"READ-ONLY","type":"string"},"id":{"format":"uuid","type":"string"},"is_active":{"type":"boolean"},"language_id":{"format":"uuid","type":"string"},"last_name":{"maxLength":255,"type":"string"},"mobile":{"maxLength":32,"type":"string"},"mobile_countrycode":{"maxLength":8,"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"password":{"format":"password","maxLength":255,"type":"string"},"phone":{"maxLength":32,"type":"string"},"phone_countrycode":{"maxLength":8,"type":"string"},"receive_form_mails":{"description":"If `true` the employee will receive an email receipt of every form submitted","type":"boolean"},"sale_price":{"description":"The price this employee costs per hour when working","format":"float","type":"number"},"street_name":{"maxLength":255,"type":"string"},"website":{"maxLength":255,"type":"string"}},"type":"object"},"VendorProduct":{"properties":{"barcode":{"maxLength":255,"type":"string"},"created":{"$ref":"#/components/schemas/created"},"created_by_id":{"format":"uuid","type":"string"},"deleted":{"$ref":"#/components/schemas/deleted"},"description":{"maxLength":255,"type":"string"},"id":{"format":"uuid","type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"name":{"maxLength":255,"type":"string"},"price":{"format":"double","type":"number"},"product_category_number":{"maxLength":255,"type":"string"},"product_number":{"maxLength":255,"type":"string"},"vendor_id":{"format":"uuid","type":"string"}},"type":"object"},"WallComment":{"properties":{"created":{"$ref":"#/components/schemas/created"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"message":{"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"user_id":{"maxLength":255,"type":"string"},"wall_post_id":{"format":"uuid","type":"string"}},"type":"object"},"WallPost":{"properties":{"created":{"$ref":"#/components/schemas/created"},"deleted":{"$ref":"#/components/schemas/deleted"},"id":{"format":"uuid","type":"string"},"message":{"type":"string"},"modified":{"$ref":"#/components/schemas/modified"},"project_id":{"format":"uuid","type":"string"},"user_id":{"format":"uuid","type":"string"}},"type":"object"},"created":{"description":"READ-ONLY","format":"dateTime","type":"string"},"deleted":{"description":"READ-ONLY - only present if it's an deleted object","format":"dateTime","type":"string"},"modified":{"description":"READ-ONLY","format":"dateTime","type":"string"}}}}
\No newline at end of file