Skip to content

Commit a211fc6

Browse files
committed
Remove api user curl example
Use Console to manage API users instead
1 parent 5889533 commit a211fc6

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

README.md

+1-23
Original file line numberDiff line numberDiff line change
@@ -122,29 +122,7 @@ There is no scope for cloud compilation specifically, but your access token shou
122122
If you plan to [flash firmware](https://github.com/particle-iot/flash-device-action) to test devices, it will need the `devices:update` scope.
123123
If you plan to [upload product firmware binaries](https://github.com/particle-iot/firmware-upload-action) to the cloud, it will need the `firmware:create` scope.
124124

125-
The best way to create an API user with the [API User tool](https://docs.particle.io/getting-started/cloud/cloud-api/#api-users).
126-
127-
Here's an example of how to manually create an API User for just the `compile-action`:
128-
129-
```bash
130-
# Create a new Particle access token with the `binary:compile` scope
131-
$ export TOKEN=<your Particle access token>
132-
$ export ORG_SLUG=<your Particle organization slug, visible in urls>
133-
$ curl "https://api.particle.io/v1/orgs/$ORG_SLUG/team?access_token=$TOKEN" -H "Content-Type: application/json" -d '{ "friendly_name": "GitHub Actions Compiling", "scopes": [ "binary:compile" ] }'
134-
{
135-
"ok": true,
136-
"created": {
137-
"username": "[email protected]",
138-
"is_programmatic": true,
139-
"tokens": [
140-
{
141-
"token": "9383649a07fb505c6b4ae9d5exampleexample"
142-
}
143-
]
144-
}
145-
}
146-
```
147-
125+
To create an API user, go to the Team page in your organization and click "Add API User".
148126

149127
## Known Issues
150128

0 commit comments

Comments
 (0)