> ## Documentation Index
> Fetch the complete documentation index at: https://help.pelion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Structure an API call

> See how a correctly structured Pelion Portal API call is composed of an HTTP method, base URL, resource, parameters, and request body.

A correctly structured API call contains an HTTP method, base URL, resource, parameters, and sometimes a request body. The example below adds the nickname "Example Nickname" to the SIM with an ICCID (Integrated Circuit Card Identifier, the unique serial number of a SIM) of `8944000000000000001`.

```bash theme={null}
curl -X PATCH "https://connectivity-eu-api.pelion.com/subscribers/8944000000000000001" \
  -H "Authorization: Bearer YOUR_ACCESS_KEY" \
  -H "Content-Type: application/json" \
  -d '{"nickname": "Example Nickname"}'
```

The call is composed of the following parts.

| Part | Example |
| - | - |
| HTTP method | `PATCH` |
| Base URL | `https://connectivity-eu-api.pelion.com` |
| Resource | `subscribers` |
| Path parameter | `8944000000000000001` |
| Access key | `-H "Authorization: Bearer YOUR_ACCESS_KEY"` |
| Request body | `-d '{"nickname": "Example Nickname"}'` |

> [!NOTE]
>
> The elements to include in your call vary depending on the endpoint. For information about the elements to include in your call, see the [API Reference](https://connectivity-eu.pelion.com/api-reference/) documentation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.