Edit an RFQΒΆ
To edit an existing RFQ on your account send a PUT request to /v1/rfqs.
CURL EXAMPLE
1 | curl -X POST -H "Content-Type: application/application/x-www-form-urlencoded" -H "Authorization: Bearer 12d3ee8b78ea8d4d09175ebf65c25584d7b269b2" "http://indoproc.com/esourcing/v1/rfqs/$id" -D "$REQUEST_BODY"
|
$id is a parameter that should be filled by RFQ ID.
REQUEST HEADERS
1 2 | Content-Type: application/x-www-form-urlencoded
Authorization: Bearer 12d3ee8b78ea8d4d09175ebf65c25584d7b269b2
|
REQUEST BODY
These are the attributes that can be added to the array of request body:
| Name | Type | Description |
|---|---|---|
| title | string | RFQ title |
| due_date | string | the due date of RFQ in a string type; contains Unix Time Stamp (miliseconds since Jan 01 1970 in UTC) |
| required_date | string | the required date of RFQ items in a string type; contains Unix Time Stamp (miliseconds since Jan 01 1970 in UTC) |
| description | string | An optional free-form text field to describe the RFQ |
These are the sample of Request Body:
1 2 3 4 5 6 | {
"title": "Lorem Ipsum",
"due_date": "1500632385539",
"required_date": "1501237194007",
"description": "Lorem Ipsum Dolor Sit Amet"
}
|
RESPONSE HEADERS
1 2 | content-type: application/json; charset=utf-8
status: 201 Created
|
RESPONSE BODY
| Name | Type | Description |
|---|---|---|
| _id | integer | The unique identifier for the RFQ, you can use this attribute to retrieve the RFQ list by sending GET request |
1 2 3 4 5 | {
"rfq": {
"_id": 1
}
}
|