user

Create or Update a secret value in a user scope

Changed on
put/user/actions/secrets/{secretname}

Request

  • Base URL
    https://demo.gitea.com/api/v1
  • Auth
    • HTTP basic
    • or API key in query parameter token
    • or API key in query parameter access_token
    • or API key in header Authorization
    • or API key in query parameter sudo
    • or API key in header Sudo
    • or API key in header X-GITEA-OTP
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

secretnamestring required

name of the secret

Request body

datastring required

Data of the secret to update

descriptionstring

Description of the secret to update

Response

response when creating a secret

Changes

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status