createOrgNpmToken
Create a token that npm sends to read the org's packages and @buildr/sdk from the registry, and nothing else, as you, for 24 hours. Write it into .npmrc beside the registry it reads: @buildr-custom:registry=<registry>, @buildr:registry=<registry>, and //<registry without its scheme>:_authToken=<token>. Ask for another once it expires. Extension code can't create one.
POST
/orgs/{org_id}/npm-tokensPath parameters
Returns
400
InvalidRequest
403
ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON
One of the following:
- ForbiddenOriginEncoded
- RequiresPersonalSessionEncoded
- RunBranchRequiredEncoded
503
SessionUnavailable | RateLimitUnavailable
JSON
One of the following:
- SessionUnavailableEncoded
- RateLimitUnavailableEncoded