6 lines
369 B
Bash
6 lines
369 B
Bash
# Create a token
|
|
curl -X POST -H "Content-Type: application/json" -d '{"name":"test", "scopes": ["write:user","write:repository","write:organization"]}' -u payne8:***password*** https://git.sa.vin/api/v1/users/payne8/tokens
|
|
|
|
# Delete a token
|
|
curl -X DELETE -H "Content-Type: application/json" -u payne8:***password*** https://git.sa.vin/api/v1/users/payne8/tokens/test
|