Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Collections-Items-Requests

Number of APIs: 4


1. Get a request

GET {{baseUrl}}/collections/{{collectionId}}/requests/{{requestId}}

Gets information about a request in a collection.



2. Create a request

POST {{baseUrl}}/collections/{{collectionId}}/requests

Creates a request in a collection. For a complete list of properties, see the [Collection Format Request documentation]

Note:

It is recommended that you pass the name property in the request body. If you do not, the system uses a null value. As a result, this creates a request with a blank name.



3. Update a request

PUT {{baseUrl}}/collections/{{collectionId}}/requests/{{requestId}}

Updates a request in a collection. For a complete list of properties, see the [Collection Format Request documentation]

Note:

  • You must pass a collection ID (12ece9e1-2abf-4edc-8e34-de66e74114d2), not a collection UID (12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2), in this endpoint.
  • This endpoint acts like a PATCH method. It only updates the values that you pass in the request body (for example, the name property). The endpoint does not update the entire resource.
  • This endpoint does not support changing the folder of a request.



4. Delete a request

DELETE {{baseUrl}}/collections/{{collectionId}}/requests/{{requestId}}

Deletes a request in a collection.



ENDPOINTS