Remove posting from basket
This endpoint is deprecated. Please do not use it for new projects. The documentation remains here for legacy API consumers.
Removing a job from the basket
Request with tokens
By issuing a DELETE-request with the /jobs/basket/{jobDbId} endpoint, a job in the basket can be removed:
1 |
curl -i -H "Authorization: Bearer TOKEN" -H "Content-Type: application/json" -X DELETE "https://api.softgarden.io/api/rest/v2/frontend/jobs/basket/{jobDbId}?cookie={cookie}" |
with TOKEN being either a client access token or a user access token. {cookie} can optionally be set to the client’s cookie ID. If set, also jobs stored in the cookie will be examined. The {jobDbId} corresponds to the job that is to be removed.
The job is removed both for the cookie and for the applicant (if the token is valid), no feedback is given.
Request with basic authorization
As an alternative, you can use here the basic authorization method. Just write
1 |
curl -i -u "{clientId}:" -H "Content-Type: application/json" -X DELETE "https://api.softgarden.io/api/rest/v2/frontend/jobs/basket/{jobDbId}?cookie={cookie}" |
{clientId} is the ID for your application to develop given to you by softgarden. The colon seen in the example is obligatory.
Path parameters
Name | Description | Data Type |
---|---|---|
jobDbId | The ID of the job to be removed from the basket. | long |
Query parameters
Name | Description | Data Type |
---|---|---|
cookie | The client’s cookie ID. See also this page. | String |
Response values
Upon | Returned value | Description |
---|---|---|
failure | 500 – INTERNAL SERVER ERROR | When an error appears while processing your request. |
authorization error | 401 / 403 | See here for details. |