{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"18c856fa-c702-4348-968c-df85c39ff0df","name":"Prysmex API Documentation","description":"<img src=\"https://content.pstmn.io/dbbc5a84-bd57-4491-b1c5-10e5eaa21a07/bG9nby5wbmc=\" width=\"393\" height=\"130\">\n\n### 🎉 Welcome to the Prysmex API Documentation! `v8.17.3`\n\nExplore and interact with nearly every feature available in the Prysmex app — all through powerful API calls.\n\n# Setup\n\n### 👤 Create a Prysmex account\n\nBefore you can use our APIs, you'll need an API-KEY🔑. If you already have an account, [login](https://app.prysmex.com) to you account or [create a new account](https://app.prysmex.com/sign_up).\n\n### 📁 Create a space\n\nNow that you've created you account, you need to create a **Space** to generate an ApiKey.\n\n> A space represents a client within the platform and can be associated with a plan. All Prysmex modules and features are located within a space, and only users (except managed users) can move between spaces. \n  \n\nFor help creating a space, please refer to [https://help.prysmex.com](https://help.prysmex.com/)\n\n### 🔑 Generate an API KEY\n\nNow that you are inside a space, navigate to [settings &gt; api keys](https://app.prysmex.com/fwd/admin/api_keys/new) to generate a your ApiKey.\n\n> API-KEYs impersonate users, if you would like to limit the api key privileges, create a user with a role that has the privileges you require for your use case. \n  \n\nAfter generating the ApiKey, make sure you store it safely since it cannot be recovered after creation.\n\nNow lets configure lets import and configure the collection to start using the APIs! 🚀\n\n### ↓ Import the collection\n\n**Click \"Run in Postman\" to get started!**\n\nIf you don’t have a Postman account yet, you’ll be prompted to create one — it’s quick and free. Once logged in, you can create a new workspace or use an existing one.\n\nThen simply import the collection into your workspace to begin exploring and testing the API.\n\n> 💡 Already have an account? Just choose a workspace and import the collection — you’re ready to go! \n  \n\n### ⚙️ Configure the collection\n\nHere are the most important variables for running most request in the collection:\n\n| Name | Description |\n| --- | --- |\n| `api_host` | The url of Prysmex's backend [<i>https://b.prysmex.com</i>](https://b.prysmex.com) |\n| `client` | Most requests require a Space context, set your Space identifier here. Setting this value sets the Client-Subdomain header. |\n| `api_key` | Your api key, setting this value sets the **Authorization** header. e.g. `ApiKey your-api-key`. This is required for requests inside the [Authenticated endpoints](https://developers.prysmex.com/#cc4689af-9492-4a3c-a6ce-f1c706559c63) folder. |\n\nYou can set them by clicking on the collection and navigatint to the variables tab Prysmex _API Documentation > Variables_ or by clicking the variables icon at the top right of this window as shown in the following image.\n\n<img src=\"https://content.pstmn.io/cf3df5b3-bbef-4535-bb96-e0c50ca128a0/U2NyZWVuc2hvdCAyMDI1LTA3LTA1IGF0IDExLjU2LjA44oCvcC5tLi5wbmc=\" alt=\"Configure%20variables\">\n\nSome additional variables include:\n\n| Name | Description |\n| --- | --- |\n| `locale` | locale |\n| `time_zone` | time_zone |\n| `refresh` | refresh |\n\n### 🚀 Run your first request!\n\nYour set! Now select you first request and run it! Some requests require additional configuration, try running _Authenticated endpoints > Users > GET me_ to display your current user.\n\n---\n\n# Core concepts\n\n- **Space / Client** — the app calls it a *Space*, the API calls it a *Client*. You select it with the `Client-Subdomain` header (the `client` variable). Most endpoints are scoped to it.\n- **Widget** — a saved view/filter created in the app. Pass a `widget_id` to any list endpoint to apply the widget's saved filters (see **Filtering**).\n\n---\n\n# Collection conventions\n\n- Variables are formatted like `this`\n    \n- Requests are organized in two main categories, **Authenticated endpoints** and **Unauthenticated endpoints.**\n    \n- API authentication is only available via ApiKey (Authorization Header), which you can generate from our app.\n    \n\n---\n\n# API conventions\n\n### Data format - JSON API {}\n\nALMOST ALL of our APIs use the JSONAPI standard for rendering data. Please refer to the official [json-api docs](https://jsonapi.org/) if you have any doubts about the standard.\n\n### JSON:API and REST payloads\n\nCreate/update endpoints accept both formats:\n\n- **JSON:API** (default): `Content-Type: application/vnd.api+json`, with a `data` object (`type`, `attributes`, `relationships`).\n- **REST**: `Content-Type: application/json`, with the model's params (automatically wrapped under the model key).\n\nBoth are equivalent — the same create, two ways:\n\n``` json\n// JSON:API\n{\n  \"data\": {\n    \"type\": \"reports\",\n    \"attributes\": { \"description\": \"Leaking pipe\", \"priority\": \"high\" },\n    \"relationships\": {\n      \"project\": { \"data\": { \"type\": \"projects\", \"id\": \"1\" } }\n    }\n  }\n}\n```\n\n``` json\n// REST\n{\n  \"report\": {\n    \"description\": \"Leaking pipe\",\n    \"priority\": \"high\",\n    \"project_id\": 1\n  }\n}\n```\n\nRead responses are still JSON:API (or `.jsonapi_flat`); this only concerns write payloads.\n\n### List & search endpoints\n\nList endpoints are available as `GET /api/<resource>` and as `POST /api/<resource>/search`. Both run the same action and accept the same params — use `POST /search` when your `filters` (or other params) are large or nested and easier to send in the body. Export formats (`xlsx`, `pdf`, `esjson`) are available on the search route.\n\n### Authentication\n\nThe following headers must be included in each request (Authorization only for authenticated endpoints). This collection takes care of this with your environment variables:\n\n| Key | Value |\n| --- | --- |\n| Client-Subdomain | my-client |\n| Authorization | ApiKey your-api-key |\n\n### JSON:API Headers\n\nSince MOST APIs follow the JSON:API media type for structured JSON responses and requests.\n\n#### 📥 `Accept` Header (recommended for read requests)\n\n**Purpose:** Tells the server that the client expects a JSON:API-formatted response.  \n**Usage:** Accept: application/vnd.api+json\n\nOptional, but **recommended** — if omitted, the server will still return JSON:API responses by default.\n\n### 📤 `Content-Type` Header (required for write requests)\n\n**Purpose:** Declares that the request body is formatted as a JSON:API document.  \n**Usage:** Content-Type: application/vnd.api+json\n\n**Required** for all requests that send a JSON:API body (e.g., **POST**, **PATCH**, **PUT**, etc..). This collection already handles this for all requests.\n\n### Try your first requests\n\n**Create a user group**\n\n``` shell\ncurl -X POST \"https://b.prysmex.com/api/user_groups\" \\\n  -H \"Authorization: ApiKey your-key\" \\\n  -H \"Client-Subdomain: yourspace\" \\\n  -H \"Content-Type: application/vnd.api+json\" \\\n  -d '{ \"data\": { \"type\": \"user-groups\", \"attributes\": { \"name\": \"My first group\" } } }'\n\n ```\n\n**Search reports**\n\n``` shell\ncurl -X POST \"https://b.prysmex.com/api/reports/search?page=1&per=10\" \\\n  -H \"Authorization: ApiKey your-key\" \\\n  -H \"Client-Subdomain: yourspace\" \\\n  -H \"Accept: application/vnd.api+json\"\n\n ```\n\n### Query params in body\n\nUnless specified otherwise, parameters can be sent **either in the query string** or **in the request body**, and will be interpreted the same by the server.\n\nFor example, if a request requires a `current_password` parameter, you may send it in either format:\n\n🔹 Option 1 – As a query parameter\n\n``` bash\ncurl -X PATCH \"https://b.prysmex.com/users/123?current_password=secret123\"\n\n ```\n\n🔹 Option 2 – In the JSON request body\n\n``` bash\ncurl -X PATCH \"https://b.prysmex.com/users/123\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"current_password\": \"secret123\"}'\n\n ```\n\n✅ Both options are valid and interchangeable for most endpoints.\n\n> 💡 For complex or structured data, using the JSON body is generally preferred. \n  \n\n### 📌 Optional Query Parameters\n\n| Parameter | Type | Description |\n| --- | --- | --- |\n| `time_zone` | String | Used to interpret or format time values. Accepts values like `America/Mexico_City`, `Etc/UTC`, `Europe/Brussels`, etc. |\n| `refresh` | Boolean | Some models are searched through a search engine, which can make results not immediately available. Setting this param ensures they are searchable right after creation or update. Useful for real-time search results in testing or automation scenarios. |\n| `sort` | String | Attribute to sort by (e.g. `created_at`). Can be a related attribute using a dotted path (e.g. `project.name`). |\n| `sort_direction` | String | Sort direction: `asc` or `desc`. |\n| `with_sql` | Boolean | Some models are searched through a search engine (see **Search (Elasticsearch) vs SQL**). Set `true` to query the database instead. |\n| `widget_id` | Integer | Applies the saved filters of a widget (see **Filtering**). Cannot be combined with `filters`. |\n| `disable_notifications` | Boolean | Skip creating notifications for this request (also accepted as a header). |\n| `disable_webhooks` | Boolean | Skip triggering webhooks for this request (also accepted as a header). |\n\n### 🌍 Locale Resolution\n\nThe application determines the language/locale for the request based on the following precedence:\n\n1. `locale` query parameter (e.g., `?locale=es`)\n    \n2. `current_user.locale` (based on the authenticated user's preferences)\n    \n3. `Accept-Language` request header (e.g., `Accept-Language: en-US`)\n    \n\n> 💡 This allows clients to override localization per request while still honoring user and browser preferences when no override is provided. \n  \n\n---\n\n# Permissions\n\nAPI keys impersonate a `User`, so every request is limited by that user's role and permissions.\n\n- If the user is not allowed to access a resource or action, the API returns `403`.\n- Non-admin users can only request a limited set of `fields` and `include`.\n- To limit what an API key can do, create a user with a role that only has the permissions you need.\n\n---\n\n# Filtering / pagination\n\n### Pagination\n\nMost search endpoints support pagination, use the following query params to control your pagination:\n\n| Key | Value | Description |\n| --- | --- | --- |\n| page | int | Number of the page that you want to get data |\n| per | int | Number of objects per page (max: 5000) |\n\n### What can I filter by?\n\nYou can filter by any attribute shown in a model's **Data Model** table — including system-managed ones like `created_at` — and also by related records using a dotted path (e.g. `project.name`) and by keys inside `json`/`jsonb` attributes (e.g. `metadata.price`).\n\n- Text attributes match partially (contains).\n- Numbers and dates accept ranges (`gt`, `gte`, `lt`, `lte`) and `exists`.\n- Arrays match any of the given values.\n\nSee each model's folder for its attributes.\n\n### Basic filtering\n\n``` json\n// id equals 1\n{\n  \"id\": 1\n}\n// state equals (created OR pending) AND (id is greater than 1 and less than 5000)\n{\n  \"state\": [\"created\", \"pending\"],\n  \"id\": {\"gt\": 1, \"lte\": 5000}\n}\n// description contains 'some text' AND due_at is null AND cost is not null AND created_at in given range\n{\n  \"description\": \"some text\",\n  \"due_at\": null,\n  \"cost\": {\"exists\": true},\n  \"created_at\": {\"gt\": \"2024-01-01T06:00:00\", \"lt\": \"2025-01-19\"}\n}\n// Relative dates - current month\n{\n  \"created_at\": {\"gt\": \"now/M\", \"lt\": \"now+1M/M\"}\n}\n\n ```\n\n#### Negating a query\n\nYou can easily negate a query by simply adding `__negate: true`\n\n``` json\n// NOT (state is done AND due_at is null)\n{\n  \"__negate\": true,\n  \"state\": [\"done\"],\n  \"due_at\": null\n}\n\n ```\n\n#### Disabling a query\n\nDisable a query by simply adding `__disable: true`\n\n``` json\n// This query will be ignored\n{\n  \"__disable\": true,\n  \"state\": [\"done\"]\n}\n\n ```\n\n### Filter group\n\nIf you need more control over AND/OR logic you can use a filter group. You can set the AND/OR evaluation via the `type` key (`any`, `all`). When `type` is set to `any`, filters are evaluated in OR context.\n\n``` json\n{\n  \"type\": \"any\", // or all\n  \"filters\": [\n    {\n      \"__negate\": true,\n      \"state\": [\"created\", \"pending\"],\n      \"id\": {\"gt\": 1, \"lte\": 5000}\n    },\n    {\n      \"created_by_id\": 50\n    }\n  ]\n}\n\n ```\n\n`__disable` and `__negate` keywords can also be used in a filter group.\n\n``` json\n{\n  \"__negate\": true, // negate group\n  \"type\": \"any\",\n  \"filters\": [\n    {\n      \"__negate\": true, // negate filter\n      \"created_by_id\": 50\n    },\n    {\n      \"state\": [\"done\"]\n    }\n  ]\n}\n\n ```\n\n### Advanced filtering\n\nYou can nest another filter group inside a filter group.\n\n``` json\n{\n  \"type\": \"any\",\n  \"filters\": [\n    {...}, // a filter\n    {...}, // another filter\n    { // a nested filter group\n      \"type\": \"all\",\n      \"filters\": [\n        {...} // filter\n      ]\n    }\n  ]\n}\n\n ```\n\n### Filtering by widget\n\nEvery list endpoint accepts a `widget_id` param. The filters saved in that widget are applied automatically, so you can reuse a view configured in the app:\n\n```\nGET /api/reports?widget_id=12\n```\n\n> `widget_id` cannot be combined with an explicit `filters` param.\n\n---\n\n# Search (Elasticsearch) vs SQL\n\nSome models are indexed in a search engine (Elasticsearch) to power fast and complex filtering. For those models, list/search requests query the search engine by default; the rest query the database (SQL).\n\n- Models indexed in the search engine: **Asset**, **Inspection**, **Post**, **Public Schema Template**, **Recognition**, **Report**, **User**, **Visit**.\n- Pass `with_sql=true` to force a database query instead.\n- `with_sql=false` on a model that isn't indexed returns an error.\n- Searched data can take a moment to appear after a write; pass `refresh=true` to make a record searchable immediately (useful in tests and automation).\n\n# Custom serialization\n\nWhenever you make a request, the data returned from the server might have more or less data that what you might need. You can use jsonapi's `fields` and `include` params to customize which data will be serialized from the server to fit your needs.\n\n> This only applies to requests that returned jsonapi payloads, which is most of them \n  \n\n#### fields `hash`\n\nAllows you to filter which `attributes` and `relationships` will be rendered in the payload for each model type.\n\n#### include `array`\n\nAllows you to filter include related records in the `included` section of the payload. This is not by model type but rather the action relationship name.\n\n#### links `boolean`\n\nAdds links to records useful for fetching the record from the server or for navigating to the record in the app.\n\n#### i18n `boolean` `string` `array`\n\nSome records have translations via a schema (e.g. Report, Inspection, CertificateRequest, etc..). Use this option to serialize translated values.\n\n#### Example\n\nHere is an example of how a request made to `/api/reports/1` using the `fields` and `include` params looks like:\n\n**payload**\n\n``` json\n{\n    \"fields\": {\n        \"reports\": \"description,state,created_by,reviewer,i18n_documents,zones\",\n        \"users\": \"first_name\",\n        \"zones\": \"name\"\n    },\n    \"include\": [\"created_by\",\"reviewer\",\"zones\"],\n    \"links\": true,\n    \"i18n\": \"es\"\n}\n\n ```\n\n**response**\n\n``` json\n{\n    \"data\": {\n        \"id\": \"1\",\n        \"type\": \"reports\",\n        \"attributes\": {\n            \"description\": \"Optio temporibus adipisci excepturi at. Sit enim saepe corrupti tempore. Veritatis modi commodi doloremque omnis vero ut.\\nPerspiciatis inventore ex culpa eveniet asperiores animi. Itaque voluptatem velit minima nihil quaerat nostrum illum. Facere ex ipsum corporis magnam. Dignissimos quo laborum recusandae laboriosam.\\nNostrum aliquam culpa consequatur dicta ipsum. Iusto rem voluptate totam error. Distinctio modi hic repellendus voluptatibus.\",\n            \"i18n-documents\": {\n                \"es\": {\n                    \"pictures\": [\n                        \"http://development.localhost:9000/uploads/prysmex/1/no_id/pictures/accident_1_32f7922e-ac48-4ee1-ac54-7f8eb3ce74fc.jpg\"\n                    ],\n                    \"shared_9fe60c\": {\n                        \"location9999\": [\n                            {\n                                \"lat\": 25.698535187692862,\n                                \"lng\": -100.29809969651323\n                            }\n                        ]\n                    }\n                }\n            },\n            \"state\": \"done\"\n        },\n        \"relationships\": {\n            \"created-by\": {\n                \"data\": {\n                    \"id\": \"10\",\n                    \"type\": \"users\"\n                }\n            },\n            \"reviewer\": {\n                \"data\": {\n                    \"id\": \"1\",\n                    \"type\": \"users\"\n                }\n            },\n            \"zones\": {\n                \"data\": [\n                    {\n                        \"id\": \"6\",\n                        \"type\": \"zones\"\n                    }\n                ]\n            }\n        },\n        \"links\": {\n            \"self\": \"http://localhost:3000/api/reports/1\",\n            \"app\": \"http://localhost:4200/s/prysmex/intents/custom?qs=(intent:(action:'in_app_navigation',payload:(to:'reports.show',args:(model_id:1))))\"\n        }\n    },\n    \"included\": [\n        {\n            \"id\": \"10\",\n            \"type\": \"users\",\n            \"attributes\": {\n                \"first-name\": \"Lawerence\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"1\",\n            \"type\": \"users\",\n            \"attributes\": {\n                \"first-name\": \"Prysmex\"\n            },\n            \"relationships\": {}\n        },\n        {\n            \"id\": \"6\",\n            \"type\": \"zones\",\n            \"attributes\": {\n                \"name\": \"Distribution center-52\"\n            },\n            \"relationships\": {},\n            \"links\": {\n                \"self\": \"http://localhost:3000/api/zones/6\"\n            }\n        }\n    ]\n}\n\n ```\n\n### Security\n\nTo prevent a user from accessing that they are not authorized to access, non-admin users have limitations how much they can configure the serialized data via `fields` and `include`.\n\n# JSONAPI flat\n\nSometimes dealing with included resources in jsonapi can be a bit tedious, which is why we support serializing in a custom 'flattened' version of the SPEC. To use it, simply add the `.jsonapi_flat` extension to a `GET` request like this:\n\n`api/reports/1.jsonapi_flat`\n\nHere is an example of the same request with the original vs flattened version.\n\n**Original**\n\n``` json\n{\n  \"data\": {\n    \"id\": \"53\",\n    \"type\": \"reports\",\n    \"attributes\": {\n      \"state\": \"created\"\n    },\n    \"relationships\": {\n      \"created-by\": {\n        \"data\": {\n          \"id\": \"9\",\n          \"type\": \"users\"\n        }\n      }\n    }\n  },\n  \"included\": [\n    {\n      \"id\": \"9\",\n      \"type\": \"users\",\n      \"attributes\": {\n        \"first-name\": \"Ehtel\"\n      },\n      \"relationships\": {}\n    }\n  ]\n}\n\n ```\n\n**Flattened**\n\n``` json\n{\n  \"id\": \"53\",\n  \"type\": \"reports\",\n  \"attributes\": {\n    \"state\": \"created\"\n  },\n  \"relationships\": {\n    \"created-by\": {\n      \"data\": {\n        \"id\": \"9\",\n        \"type\": \"users\",\n        \"attributes\": {\n          \"first-name\": \"Ehtel\"\n        },\n        \"relationships\": {}\n      }\n    }\n  }\n}\n\n ```\n\nNow all the data of the user co-located with the relationship, instead of having to search for a user name in the `included` section via its id.\n\n---\n\n# Errors\n\nErrors are returned in [json-api errors](https://jsonapi.org/examples/#error-objects) format.  \nHere as some common errors when processing requests and when they might occure.\n\n| Status Code | Meaning | Description |\n| --- | --- | --- |\n| `200 OK` / `201 Created` | **Success** | The request succeeded. `201` is returned when a resource is created. |\n| `204 No Content` | **Success, no body** | The request succeeded and there is nothing to return (e.g. some updates/deletes). |\n| `400 Bad Request` | **Invalid request** | The request is malformed or uses an unsupported parameter value. |\n| `401 Unauthorized` | **Missing or invalid credentials** | The request did not include valid authentication credentials (e.g., missing or expired token). |\n| `403 Forbidden` | **Access denied** | Authentication was successful, but the user does not have permission to access the requested resource. |\n| `404 Not Found` | **Resource not found** | The requested resource does not exist or is not visible to the user. |\n| `422 Unprocessable Entity` | **Invalid or incomplete request data** | The request was well-formed but could not be processed due to semantic errors (e.g., missing required fields, invalid formats). |\n| `429 Too Many Requests` | **Rate limited** | Too many requests were sent in a short period. Wait before retrying. |\n| `500` / `503` | **Server error** | Something went wrong on our side. Retry later; if it persists, contact support. |\n\n### Error payload examples\n\nInvalid api key `401`\n\n``` json\n{\n    \"errors\": [\n        {\n            \"detail\": \"Invalid api key\"\n        }\n    ]\n}\n\n ```\n\nInvalid payload when creating a resource. `422`\n\n``` json\n{\n    \"errors\": [\n        {\n            \"status\": \"422\",\n            \"code\": \"blank\",\n            \"title\": \"Unprocessable Content\",\n            \"detail\": \"Nombre no puede estar en blanco\",\n            \"source\": {\n                \"pointer\": \"/data/attributes/name\"\n            }\n        },\n        {\n            \"status\": \"422\",\n            \"code\": \"too_short\",\n            \"title\": \"Unprocessable Content\",\n            \"detail\": \"Nombre es demasiado corto (3 caracteres mínimo)\",\n            \"source\": {\n                \"pointer\": \"/data/attributes/name\"\n            }\n        }\n    ]\n}\n\n ```\n\n---\n\n<a id=\"bulk-actions\"></a>\n\n# Bulk actions\n\nUse bulk actions to apply the same operation to multiple records of one resource. Resource-specific permissions, writable fields, and validations apply to every target.\n\n## Selection engines\n\n| Operation | Selection engine |\n| --- | --- |\n| Update by query, including preview | Always PostgreSQL, even when the resource's list/search endpoint uses Elasticsearch. `with_sql`, `search`, pagination, and sorting do not change this selection. |\n| Filtered deletion | SQL or Elasticsearch through the resource's query helpers. Set `with_sql: true` for SQL or `with_sql: false` for Elasticsearch where supported. If omitted, the controller default applies; otherwise searchable models default to Elasticsearch and other models to SQL. |\n| Update/delete by explicit IDs | Targets are loaded directly from PostgreSQL. |\n\nQuery-based selection requires the current space. Models without automatic client scoping are rejected unless explicitly allowlisted; no exceptions are currently allowlisted. User update-by-query, including preview, is unavailable pending SQL permission support. The ordinary User list/search endpoint continues to use Elasticsearch. Users do not expose generic bulk deletion.\n\n\nRunnable examples live in **Authenticated endpoints > Bulk actions** and use **UserGroup** (`/api/user_groups`, JSON:API type `user-groups`). For another resource, substitute its API path and JSON:API type and use its permitted fields. Support is listed below; a regular create/update/delete action alone does not imply bulk support.\n\n## Supported resources\n\nThe API path column replaces `<resource>` in the endpoint paths below. “Yes” means the resource exposes both the route and its bulk controller action and the model policy permits the operation; caller permissions still apply. Resources absent from this table do not expose these generic bulk actions.\n\n| Resource | API path | Create | Update by ID | Update by query | Delete | Restrictions / notes |\n| --- | --- | --- | --- | --- | --- | --- |\n| Assets | `assets` | Yes | Yes | Yes | Yes | — |\n| Business segment schema templates | `business_segment_schema_templates` | Yes | Yes | Yes | Yes | — |\n| Business segments | `business_segments` | Yes | Yes | Yes | Yes | — |\n| Campaign messages | `campaign_messages` | Yes | Yes | Yes | Yes | — |\n| Campaigns | `campaigns` | Yes | Yes | Yes | Yes | — |\n| Certificate requests | `certificate_requests` | Yes | Yes | Yes | Yes | — |\n| Certificates | `certificates` | Yes | Yes | Yes | Yes | — |\n| Companies | `companies` | Yes | Yes | Yes | Yes | — |\n| Company schema templates | `company_schema_templates` | Yes | Yes | Yes | Yes | — |\n| Contractor types | `contractor_types` | Yes | Yes | Yes | Yes | — |\n| Course enrollments | `course_enrollments` | — | — | — | Yes | Bulk deletion only. |\n| Drive nodes | `drive_nodes` | Yes | Yes | Yes | Yes | — |\n| Inspections | `inspections` | Yes | Yes | Yes | Yes | — |\n| Intents | `intents` | Yes | Yes | Yes | Yes | — |\n| Posts | `posts` | Yes | Yes | Yes | Yes | — |\n| Projects | `projects` | Yes | Yes | Yes | — | Bulk deletion is unavailable. |\n| Recognitions | `recognitions` | Yes | Yes | Yes | Yes | — |\n| Reports | `reports` | Yes | Yes | Yes | Yes | Assignee and reviewer changes require the same change-specific permissions as single-record writes. |\n| Roles | `roles` | Yes | Yes | Yes | Yes | — |\n| Schedule plans | `schedule_plans` | Yes | Yes | Yes | Yes | — |\n| Schedules | `schedules` | Yes | Yes | Yes | Yes | Updates enforce the shared Schedule configuration write boundary. |\n| User groups | `user_groups` | Yes | Yes | Yes | Yes | — |\n| Users | `users` | Yes | Yes | — | — | Create: local (managed) users only; no identity matching. Updates by ID retain per-target profile restrictions and privileged-role checks. Update by query and preview are unavailable pending SQL permission support. |\n| Visits | `visits` | Yes | — | — | Yes | Bulk update and update by query are unavailable. |\n| Widgets | `widgets` | Yes | Yes | Yes | Yes | — |\n\nUsers `import`, `import_preview`, and `invite_bulk` have their own 1–200 row limit and response contract. Other specialized operations, including Users archive/unarchive, Notifications mark-as-read, trigger verification, and Dataset features upsert/delete, remain in their resource folders and do not use this generic contract. Reports and Inspections CSV imports are also separate.\n\n## Shared rules\n\n| Rule | Behavior |\n| --- | --- |\n| Transaction | A failure rolls back the batch's database writes on the shared connection; there is no partial database success. Synchronous external effects and writes on other connections cannot be rolled back. |\n| Authorization | Create checks each proposed record; update and delete check each existing target. Create/update enforce the same change-specific permissions as ordinary writes, including Report assignees and reviewer. No blanket administrator role is required for bulk updates. |\n| Selection permissions | Explicit IDs for update/delete do not require separate read access. Filtered deletion and update by query first select records with index access, then check each target's write permission. Preview also requires show access for sampled values. |\n| Size | Create, update by ID, and delete default to 10,000 records per request; update by query defaults to 100. Resource limits may be lower. Oversized selections fail instead of being truncated, including dry runs. |\n| Dry run | Pass `dry_run: true` to run the persistence path and roll back database changes. Webhooks are suppressed; other external effects may still occur. Create IDs returned during a dry run are temporary. Update by query requires a JSON boolean; the other bulk actions also accept `dry_run=true` in the query string. |\n| Errors | Invalid or oversized batches fail without retaining batch database changes. Permission failures return `403`. Duplicate update IDs return `422` with `bulk update cannot contain duplicate IDs`. |\n\n<a id=\"bulk-create\"></a>\n\n### Create\n\nSend **POST** `/api/<resource>/bulk` with `Content-Type: application/vnd.api+json`. Wrap each complete JSON:API create document in a top-level `data` array:\n\n```json\n{\n  \"data\": [\n    {\"data\": {\"type\": \"user-groups\", \"attributes\": {\"name\": \"Safety team\"}}},\n    {\"data\": {\"type\": \"user-groups\", \"attributes\": {\"name\": \"Maintenance team\"}}}\n  ]\n}\n```\n\nEach row uses the single-record creation allowlist. Success returns **201 Created** with `{\"ids\": [101, 102]}`. Creation always creates new records; it does not match existing identities.\n\n<a id=\"bulk-update\"></a>\n\n### Update by ID\n\nSend **PATCH** `/api/<resource>/bulk_update` with `Content-Type: application/vnd.api+json`. Each row supplies its own changes and an existing, unique ID at `/data/id`:\n\n```json\n{\n  \"data\": [\n    {\"data\": {\"type\": \"user-groups\", \"id\": \"101\", \"attributes\": {\"name\": \"Safety team A\"}}},\n    {\"data\": {\"type\": \"user-groups\", \"id\": \"102\", \"attributes\": {\"name\": \"Maintenance team B\"}}}\n  ]\n}\n```\n\nAll supplied IDs must exist. A target cannot appear twice, including as both a number and its equivalent string. Each row uses the target's single-record update allowlist; only submitted writable fields change. Success returns **204 No Content**.\n\nBulk create/update skip individual action bodies while retaining shared parameter filtering, change-specific authorization, and persistence hooks. Resource-specific commands may have their own endpoints.\n\n<a id=\"bulk-update-by-query\"></a>\n\n### Update by query\n\nSend **POST** `/api/<resource>/update_by_query` with `Content-Type: application/json`. This uses a plain JSON object, not a JSON:API `data` array. Use it for shared assignments or transformations calculated from each matching record's current values.\n\n```json\n{\n  \"filters\": {\"id\": [101, 102]},\n  \"attributes\": {\"description\": \"Reviewed by the safety team\"}\n}\n```\n\n| Parameter | Contract |\n| --- | --- |\n| `filters` | Required nonempty SQL filter clause or nested group, such as `{\"type\": \"all\", \"filters\": [{\"id\": [101, 102]}]}`. Group types are `all` and `any`; clause-level `__negate` accepts a boolean. Empty clauses/groups, `__disable`, and unknown filter fields are rejected. |\n| `attributes` | Shared assignments using model attribute names, such as `description`. Execution requires nonempty assignments, a complete transformer, or both. Assignments apply before transformation. |\n| `transformer` | One object with nonempty, unique `fields`, plus `type` (`jq` or `json_patch`) and `expression`. Fields are top-level model attribute names and define exactly the object received and returned by the transformer. |\n| `dry_run` | JSON boolean; runs saves and rolls back. Cannot be true with `preview`. |\n| `preview` | JSON boolean; inspects a sample without saves, model validation, or save callbacks. Defaults to false. |\n| `sample_size` | Preview only: integer 1–20, default 5. Samples are ordered by primary key. |\n\nSelection always uses PostgreSQL within the current space and records with index access, even for resources normally searched through Elasticsearch. Pagination, sorting, and other unsupported top-level keys do not restrict the selection. Nonexistent IDs in filters are simply not matched. Execution freezes selected IDs and locks targets before preparing updates; it checks update and change-specific permissions for every target and rejects the whole batch on failure.\n\nOnly permitted, actual model attributes are eligible. Identity, ownership, STI type, timestamps, lock version, readonly fields, collection relationship IDs, nested association writes, and virtual commands such as `state_transition_name` are unavailable. JSON/array attributes remain eligible where permitted. Unsupported attributes or values fail the batch instead of being silently discarded. Nullable fields may be cleared with `null` where permitted.\n\n**jq transformation** — uppercase each group's own name:\n\n```json\n{\n  \"filters\": {\"id\": [101, 102]},\n  \"transformer\": {\n    \"fields\": [\"name\"],\n    \"type\": \"jq\",\n    \"expression\": \".name |= ascii_upcase\"\n  }\n}\n```\n\n**JSON Patch transformation** — paths address the editable attribute object:\n\n```json\n{\n  \"filters\": {\"id\": [101, 102]},\n  \"transformer\": {\n    \"fields\": [\"description\"],\n    \"type\": \"json_patch\",\n    \"expression\": [{\"op\": \"replace\", \"path\": \"/description\", \"value\": \"Reviewed\"}]\n  }\n}\n```\n\nJSON Patch supports `add`, `remove`, `replace`, `move`, `copy`, and `test`. A transformer must return one object preserving exactly its declared top-level fields; nested JSON properties may be removed. Unchanged transformations skip saving; explicit unchanged assignments still follow the ordinary persistence path. Counts compare final, type-cast proposed values before validation and save callbacks.\n\nSuccess returns **200 OK**:\n\n```json\n{\"ids\": [101, 102], \"matched_count\": 2, \"changed_count\": 2, \"unchanged_count\": 0}\n```\n\nIDs include unchanged targets. No matches returns empty IDs and zero counts. The default execution limit is **100**, including dry runs. Requests also allow up to 100 filter clauses, 10 levels of filter-group nesting, and 100 JSON Patch operations. Expressions are limited to 64,000 JSON-encoded bytes; transformer data is bounded to 500,000 bytes and 100 nesting levels. A cumulative 10-second processing budget is checked between operations; it does not interrupt running queries or callbacks.\n\nThere is no idempotency-key support. Retrying relative transformations such as increments or appends after an ambiguous response can apply them twice.\n\n**Preview** — add `preview: true` to assignments or a complete transformer to inspect proposed changes. For input-only inspection, supply `filters` and optionally `transformer: {\"fields\": [\"name\"]}` without a type or expression:\n\n```json\n{\n  \"preview\": true,\n  \"filters\": {\"id\": [101, 102]},\n  \"transformer\": {\"fields\": [\"name\"], \"type\": \"jq\", \"expression\": \".name |= ascii_upcase\"},\n  \"sample_size\": 1\n}\n```\n\nA proposed-change preview returns **200 OK**, for example:\n\n```json\n{\n  \"matched_count\": 2,\n  \"sampled_count\": 1,\n  \"execution_limit\": 100,\n  \"exceeds_execution_limit\": false,\n  \"sample_changed_count\": 1,\n  \"sample_unchanged_count\": 0,\n  \"records\": [\n    {\"id\": \"101\", \"input\": {\"name\": \"Safety team\"}, \"changes\": {\"name\": {\"before\": \"Safety team\", \"after\": \"SAFETY TEAM\"}}}\n  ]\n}\n```\n\n`matched_count` covers all matches with index access; only the sample has update/show permissions and changes checked. Preview may sample more matches than the execution limit allows. Input-only previews omit `changes` and sample change counts; without a transformer, preview displays all eligible attributes. A successful preview does not guarantee that every match can be updated or that execution will succeed later.\n\n<a id=\"bulk-delete\"></a>\n\n### Delete\n\nSend **DELETE** `/api/<resource>` with `Content-Type: application/json`. Select targets using either explicit `ids` or the shared `filters` syntax:\n\n```json\n{\"ids\": [101, 102], \"dry_run\": false}\n```\n\nAll explicit IDs must exist. Filtered deletion selects records with index access, then checks delete permission on each target; explicit IDs require delete permission without separate read access. The selected count must fit the batch limit. Success returns **200 OK** with `{\"ids\": [101, 102]}`.\n\n---\n\n# Atomic operations\n\n**POST `/api/operations`** creates, updates, or removes resources in one batch using [JSON:API Atomic Operations](https://jsonapi.org/ext/atomic/). Use the usual authentication and `Client-Subdomain` header. Each operation runs its existing controller authorization, strong parameters, and validations.\n\n```http\nContent-Type: application/vnd.api+json;ext=\"https://jsonapi.org/ext/atomic\"\nAccept: application/vnd.api+json;ext=\"https://jsonapi.org/ext/atomic\"\n```\n\n```json\n{\n  \"atomic:operations\": [\n    {\"op\": \"add\", \"data\": {\"type\": \"user-groups\", \"attributes\": {\"name\": \"Safety team\"}}},\n    {\"op\": \"update\", \"data\": {\"type\": \"user-groups\", \"id\": \"123\", \"attributes\": {\"name\": \"Updated team\"}}},\n    {\"op\": \"remove\", \"ref\": {\"type\": \"user-groups\", \"id\": \"456\"}}\n  ]\n}\n```\n\nSuccess returns **200** with ordered `atomic:results`, with creates and updates containing the resource as `data` and removals returning `{}`. A failed operation rolls back shared-connection database writes; error pointers identify the operation.\n\n**Limitations**\n\n- **1–50 operations:** `add`, `update`, and `remove`. Create-only batches may mix root types; batches containing updates or removals must use one root type. `href` and standalone relationship operations are unsupported.\n- Updates use `data.type` and persisted `data.id` (or a matching `ref`). Removals use `ref: {\"type\": \"user-groups\", \"id\": \"123\"}` without `data`. These targets cannot use `lid`; each persisted target may appear only once, and IDs must use their canonical database representation.\n- All persisted targets must exist in the current client before any resource action runs; missing targets return 404.\n- **Required client ownership:** only eligible existing create/update/destroy endpoints on the application connection; global or optionally client-owned models (such as Users and Clients) are excluded as root targets.\n- No client-assigned create root IDs or custom nested `included` payloads; no top-level `included` in results.\n- Relationship `lid` references must point to an earlier operation in the same batch; duplicate local identities are rejected.\n- External effects, including synchronous webhooks, and callback writes on independent connections cannot be rolled back.\n- `after_commit` runs after the whole batch commits; results can become stale, and callback failures cannot undo committed records.\n- Existing per-operation rate limits apply. Retries can create duplicates; no idempotency guarantee.\n\n\n---\n\n# Nested actions\n\nSome models allow to modify nested resources in a `create` / `update` request by using the `included` keyword (create, update) and `_destroy` attribute (destroy).\n\nSome examples are:\n\n- Creating an `Inspection` along with its associated `Report`(s) in the same request.\n    \n- Modifying an `Inspection`, removing an existing associated report and adding a new report.\n    \n\nHere is a summary table that illustrates the posibilities.\n\n| Main resource action | **Possible nested resource action** |\n| --- | --- |\n| create | create |\n| update | create, update, destroy |\n\n#### Example: Creating an Inspection with a Report\n\nAs you can see, the report is a regular JSON:API request nested inside the `included` keyword. It's vital to add the relationship in the parent to the child.\n\n``` json\n{\n    \"data\": {\n        \"id\": \"local-d37ij9\",\n        \"attributes\": {\n            \"document\": {\n                \"text2\": \"My text\"\n            }\n        },\n        \"relationships\": {\n            \"project\": {\n                \"data\": {\n                    \"type\": \"projects\",\n                    \"id\": \"1\"\n                }\n            },\n            \"reports\": {\n                \"data\": [\n                    {\n                        \"type\": \"reports\",\n                        \"id\": \"local-463m0o\"\n                    }\n                ]\n            },\n            \"schema-template-version\": {\n                \"data\": {\n                    \"type\": \"inspection-schema-templates\",\n                    \"id\": \"2\"\n                }\n            }\n        },\n        \"included\": [\n            {\n                \"id\": \"local-463m0o\",\n                \"attributes\": {\n                    \"description\": \"Some description\",\n                    \"document\": {\n                        \"pictures\": [],\n                        \"meta\": {}\n                    }\n                },\n                \"relationships\": {\n                    \"project\": {\n                        \"data\": {\n                            \"type\": \"projects\",\n                            \"id\": \"1\"\n                        }\n                    },\n                    \"schema-template-version\": {\n                        \"data\": {\n                            \"type\": \"report-schema-templates\",\n                            \"id\": \"6\"\n                        }\n                    }\n                },\n                \"type\": \"reports\",\n                \"lid\": \"@ember-data:lid-report-local-463m0o\"\n            }\n        ],\n        \"type\": \"inspections\",\n        \"lid\": \"@ember-data:lid-inspection-local-d37ij9\"\n    }\n}\n\n ```\n\n#### Example: Updating an Inspection deleting existing Report and adding a new Report\n\nTo delete a record, it must be marked with the `-destroy` attribute.\n\n``` json\n{\n    \"data\": {\n        \"id\": \"146\",\n        \"attributes\": {\n            \"document\": {\n                \"text2\": \"My updated text\"\n            }\n        },\n        \"relationships\": {\n            \"reports\": {\n                \"data\": [\n                    {\n                        \"type\": \"reports\",\n                        \"id\": \"local-6jl3h\"\n                    },\n                    {\n                        \"type\": \"reports\",\n                        \"id\": \"179\"\n                    }\n                ]\n            },\n            \"schema-template-version\": {\n                \"data\": {\n                    \"type\": \"inspection-schema-templates\",\n                    \"id\": \"2\"\n                }\n            }\n        },\n        \"included\": [\n            {\n                \"id\": \"179\",\n                \"type\": \"reports\",\n                \"attributes\": {\n                    \"-destroy\": true\n                }\n            },\n            {\n                \"id\": \"local-6jl3h\",\n                \"attributes\": {\n                    \"description\": \"Some description\",\n                    \"document\": {\n                        \"pictures\": [],\n                        \"meta\": {}\n                    }\n                },\n                \"relationships\": {\n                    \"project\": {\n                        \"data\": {\n                            \"type\": \"projects\",\n                            \"id\": \"1\"\n                        }\n                    },\n                    \"schema-template-version\": {\n                        \"data\": {\n                            \"type\": \"report-schema-templates\",\n                            \"id\": \"6\"\n                        }\n                    }\n                },\n                \"type\": \"reports\",\n                \"lid\": \"@ember-data:lid-report-local-6jl3h\"\n            }\n        ],\n        \"type\": \"inspections\",\n        \"lid\": \"@ember-data:lid-inspection-local-d37ij9\"\n    }\n}\n\n ```\n\n# Data models\n\n### Doc conventions\n\nThis docs are a collection are organized into two major categories **Authenticated endpoints** and **Unauthenticated endpoints**, which then are organized by data model (e.g. _Users_, _Clients_, _Reports_, etc...). Inside each folder, you'll find example requests that range from creating, updating, searching, deleting to other model specific requests. At the beginning of each directory, you'll find a section called **Data Model** that contains a representation of the database table for that model with the following divided into two categories:\n\n- 🔒 **System-managed attributes**: Set or updated automatically by the system. These cannot be provided or modified through the API.\n    \n- 📤 **API-settable attributes**: Fields that can be created or updated by the client when interacting with the API.\n    \n\nSee **Common Data Model attributes** table to new an example of how each model table looks like.\n\n> This postman collection contains requests for all models that exist in our platform and we do our best to maintain them up to date. If you have any issues, o need help, feel free to contact us in the live chat in our app at [https://app.prysmex.com](https://app.prysmex.com). \n  \n\n### Common Data Model attributes\n\nEach data model contains a table with its attributes (columns). Since most data models contain the following attributes, they are NOT listed on each of the tables.\n\n#### 📤 Settable\n\n| **Attribute** | **Type** | **Default** | **Description** |\n| --- | --- | --- | --- |\n\n#### 🔒 System managed\n\n| **Attribute** | **Type** | **Default** | **Description** |\n| --- | --- | --- | --- |\n| **created_at**\\* | datetime | timestamp for now | Timestamp when the record was created  <br>(system-managed) |\n| **updated_at**\\* | datetime | timestamp for now | Timestamp when the record was last updated  <br>(system-managed) |\n| deleted_at | datetime | null | Soft-deletion timestamp  <br>(system-managed) |\n| **created_by_id**\\* | integer | id if current `User` | ID of the `User` who created this record  <br>(system-managed) |\n| last_updated_by_id | integer | null | ID of the `User` who last updated this record  <br>(system-managed) |\n| last_deleted_by_id | integer | null | ID of the `User` who deleted this record  <br>(system-managed) |\n| **client_id**\\* | integer | current space | The space the record belongs to  <br>(system-managed) |\n\n---\n\n# Date Parameters\n\nDate query parameters support multiple formats for flexibility:\n\n---\n\n##### 1\\. Unix Timestamp (seconds)\n\nNumeric value representing seconds since epoch.\n\n```\n?start_at=1713571200\n?end_at=1700000000\n\n ```\n\n##### 2\\. ISO 8601 Date / Datetime\n\nStandard date or datetime strings.\n\n```\n?start_at=2024-01-01\n?end_at=2024-01-01T15:30:00Z\n\n ```\n\n##### 3\\. ISO 8601 Duration (relative to now)\n\nDuration strings (starting with `P`) are evaluated relative to the current time.\n\n```\n?start_at=P1D # 1 day from now\n?end_at=PT2H # 2 hours from now\n\n ```\n\n##### 4\\. Datemath Expressions\n\nElastic-style datemath expressions for relative and rounded dates.\n\n```\n?start_at=now\n?start_at=now-1d\n?start_at=now-1d/d\n?end_at=2024-01-01T00:00:00||+1d\n\n ```\n\n---\n\n# Webhooks\n\nWebhooks let Prysmex send event data to a URL you choose whenever something changes, instead of you polling the API. You subscribe to one or more events and Prysmex makes an HTTP request to your URL with the event payload — useful when your integration needs to react to changes (for example, when a Report is created or completed, or a Certificate changes state).\n\nManage and test webhooks in the app at [app.prysmex.com/s/fwd/admin/webhooks](https://app.prysmex.com/s/fwd/admin/webhooks), or through the API in the **Webhook subscriptions** folder.\n\n---\n\n# Disclaimers\n\n- 🚫 API versioning is not currently supported. This means that new releases may introduce breaking changes without prior notice. Please monitor updates closely and test your integrations regularly.","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"420467","team":133853,"collectionId":"18c856fa-c702-4348-968c-df85c39ff0df","publishedId":"2sBYPwXrbA","public":true,"publicUrl":"https://developers.prysmex.com","privateUrl":"https://go.postman.co/documentation/420467-18c856fa-c702-4348-968c-df85c39ff0df","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"documentationLayout":"classic-double-column","customisation":{"metaTags":[{"name":"description","value":""},{"name":"title","value":"Prysmex APIs"}],"appearance":{"default":"light","themes":[{"name":"dark","logo":null,"colors":{"top-bar":"212121","right-sidebar":"303030","highlight":"FF6C37"}},{"name":"light","logo":null,"colors":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"}}]}},"version":"8.12.14","publishDate":"2026-12-01T00:43:56.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{"title":"Prysmex APIs","description":""},"logos":{"logoLight":null,"logoDark":null}},"statusCode":200},"environments":[{"name":"production","id":"3b557dab-7871-46cf-becf-e17e1fe7e842","owner":"420467","values":[{"key":"host","value":"https://app.prysmex.com","enabled":true,"type":"default","description":"Override for collection variable (not used due to limitation)"},{"key":"api_host","value":"","enabled":false,"type":"default"},{"key":"client","value":"","enabled":true,"type":"default"},{"key":"multisharding_client","value":"","enabled":true,"type":"default"},{"key":"api_key","value":"","enabled":true,"type":"secret"},{"key":"user_email","value":"","enabled":true,"type":"default"}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://postman-image-service.postman.com/api/cloudinary-proxy/postman/image/upload/t_team_logo_pubdoc/v1/team/01456ab4ff4241cc3e5e27e250d4d9e06de428eeed26cd63f584735a455cbac2","favicon":"https://prysmex.com/favicon.ico"},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"production","value":"420467-3b557dab-7871-46cf-becf-e17e1fe7e842"}],"canonicalUrl":"https://developers.prysmex.com/view/metadata/2sBYPwXrbA"}