Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get all element add requests

GET {{baseUrl}}/network/private/network-entity/request/all

Gets a list requests to add elements to the [Private API Network]

 

Body PARAM

Key Datatype Required Description 
since
string Return only elements updated at and after this time, in ISO 8601 UTC format.
until
string Return only elements updated at and before this time, in ISO 8601 UTC format.
requestedBy
string Return a user's element requests by their user ID.
type
string Filter by the element type. One of: `workspace`, `collection`, `api`.
status
string Filter by the request status. One of: `pending`, `denied`.
name
string Return only elements whose name includes the given value. Matching is not case-sensitive.
sort
string Sort the results by the `name` or `updatedAt` properties. If you use this query parameter, you must also use the `direction` parameter.
direction
string Sort in ascending (`asc`) or descending (`desc`) order. Matching is not case-sensitive. If you use this query parameter, you must also use the `sort` parameter.
offset
string The zero-based offset of the first item to return. This value defaults to `0`.
limit
string The maximum number of elements to return. If the value exceeds the maximum value of `1000`, then the system uses the `1000` value.



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "requests": [ { "id": 1, "createdBy": 87654321, "createdAt": "2020-06-01T08:32:31.000Z", "status": "pending", "element": { "type": "api", "id": "360b75f-447e-467c-9299-12fd3c92450d", "name": "Test api", "summary": "Test api summary" } }, { "id": 2, "createdBy": 12345678, "createdAt": "2022-06-09T14:48:45.000Z", "message": "Please approve this collection", "status": "denied", "element": { "type": "collection", "id": "5360b75f-447e-467c-9299-12fd3c92450d", "name": "Test Collection", "summary": "This is a test collection." }, "response": { "createdAt": "2020-06-01T08:32:31.000Z", "createdBy": 2272, "message": "Too many errors, please fix and resubmit" } } ], "meta": { "limit": 10, "offset": 5, "totalCount": 100 } }



Curl
curl -X GET 'https://api.getpostman.com/network/private/network-entity/request/all?since=<string>&until=<string>&requestedBy=<integer>&type=<string>&status=<string>&name=<string>&sort=<string>&direction=<string>&offset=<integer>&limit=<integer>'

ENDPOINTS