---
agentTools:
  projectIndex: https://wiwink.readme.io/llms.txt
---

# Create Work

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Wiwink API",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://developers.wiwink.com/api"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "Authorization",
        "x-bearer-format": "bearer",
        "x-default": "<your-api-key>"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/works": {
      "post": {
        "summary": "Create Work",
        "description": "",
        "operationId": "create-work",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "customer_id"
                ],
                "properties": {
                  "customer_id": {
                    "type": "integer",
                    "description": "Id of the related customer.",
                    "format": "int32"
                  },
                  "status_id": {
                    "type": "integer",
                    "description": "Work status. Accepted values are the ones listed in work stauses API.",
                    "format": "int32"
                  },
                  "type_id": {
                    "type": "integer",
                    "description": "Work type. Accepted values are the ones listed in work types API.",
                    "format": "int32"
                  },
                  "prefix": {
                    "type": "string",
                    "description": "Work reference prefix."
                  },
                  "number": {
                    "type": "integer",
                    "description": "Work reference number.",
                    "format": "int32"
                  },
                  "suffix": {
                    "type": "string",
                    "description": "Work reference suffix."
                  },
                  "from": {
                    "type": "string",
                    "description": "Start date and time of the work.",
                    "format": "date"
                  },
                  "to": {
                    "type": "string",
                    "description": "End date and time of the work.",
                    "format": "date"
                  },
                  "comments": {
                    "type": "string",
                    "description": "Comments of the work."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"id\": 4196,\n        \"customer_id\": 32273,\n        \"status_id\": 1,\n        \"type_id\": null,\n        \"prefix\": null,\n        \"number\": 1000,\n        \"suffix\": null,\n        \"full_number\": \"1000\",\n        \"from\": \"2021-10-12 13:00:00\",\n        \"to\": \"2021-10-12 14:00:00\",\n        \"sub_amount\": 100,\n        \"tax_amount\": 21,\n        \"full_amount\": 121,\n        \"comments\": null\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 4196,
                          "default": 0
                        },
                        "customer_id": {
                          "type": "integer",
                          "example": 32273,
                          "default": 0
                        },
                        "status_id": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "type_id": {},
                        "prefix": {},
                        "number": {
                          "type": "integer",
                          "example": 1000,
                          "default": 0
                        },
                        "suffix": {},
                        "full_number": {
                          "type": "string",
                          "example": "1000"
                        },
                        "from": {
                          "type": "string",
                          "example": "2021-10-12 13:00:00"
                        },
                        "to": {
                          "type": "string",
                          "example": "2021-10-12 14:00:00"
                        },
                        "sub_amount": {
                          "type": "integer",
                          "example": 100,
                          "default": 0
                        },
                        "tax_amount": {
                          "type": "integer",
                          "example": 21,
                          "default": 0
                        },
                        "full_amount": {
                          "type": "integer",
                          "example": 121,
                          "default": 0
                        },
                        "comments": {}
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Accept",
        "value": "application/json"
      }
    ],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true,
  "_id": "5fc95bf5cedbb60012732d63:6164322ab67ba5006d3900b3"
}
```