projects
Uploads a project document
Changed onHandles the uploading of a document to a project
post/api/v1/projects/{id}/upload
Request
- Base URLhttps://demo.invoiceninja.com
- Authnone declared. Required headers: X-API-TOKEN, X-Requested-With
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring string required
The Project Hashed ID
Query parameters
includestring
Example:first_load
Includes child relationships in the response, format is comma separated. Check each model for the list of associated includes
Headers
X-API-TOKENstring required
Example:TOKEN
The API token to be used for authentication
X-Requested-Withstring required
Example:XMLHttpRequest
Used to send the XMLHttpRequest header
Request body multipart/form-data
Example request
{
"_method": "PUT"
}Response
Returns the Project object
Example response
{
"id": "Opnel5aKBz",
"user_id": "Opnel5aKBz",
"assigned_user_id": "Opnel5aKBz",
"client_id": "Opnel5aKBz",
"name": "New Project",
"task_rate": 10,
"due_date": "2019-01-01",
"created_at": 134341234234,
"updated_at": 134341234234,
"archived_at": 134341234234,
"tags": [
{
"id": "Opnel5aKBz",
"name": "Urgent",
"color": "#FF0000"
}
]
}Changes
- breaking
the response property
//became optional for the status
- breaking
- info
added the optional property
to the response with the status
- info