Praecise Cloud/ Reference/ Projects

Set or clear environment values

post/api/projects/{name}/env

Set or clear environment values. Values are never read back, only key names. The service restarts.

Before you call

Credential
Authorization: Bearer $KEY with env
Scope
env
Role
owner

Parameters

  • namestringrequired
    In the path. The project's name.

Request bodyapplication/json, required

  • setobject
    Keys to set, with their values.
  • clearlist of string
    Keys to remove.

Responses

  • 200application/json
    The environment was changed.

    object

  • 400application/json
    The request is not valid: a bad parameter, or a release that is not kept. Code bad_request or bad_release.
    • errorstringrequired
    • codestringrequired
  • 401application/json
    No token, or the token is unknown, revoked or expired. Code unauthenticated, token_revoked or token_expired.
    • errorstringrequired
    • codestringrequired
  • 403application/json
    The token lacks the scope, the call is not open to tokens, or the caller is not an owner. Code scope_missing, session_required or owner_required.
    • errorstringrequired
    • codestringrequired
  • 404application/json
    No such project, or one the caller cannot see. The two are not told apart. Code not_found.
    • errorstringrequired
    • codestringrequired
  • 429application/json
    Too many requests for this token. Retry-After says how many seconds to wait. Code rate_limited.
    • errorstringrequired
    • codestringrequired

This page as Markdown