---
raw: true
search:
  tags:
    - Access
    - POST
seo:
  description: >-
    Replaces the Argon2id password… Reference for the POST
    /v1/spaces/{spaceId}/password-credentials/{credentialId}/rotate endpoint in
    the Spacefast Partner API.
sidebar:
  label: Rotate a password access credential
  badge: POST
title: Rotate a password access credential
type: openapi-operation
---
Replaces the Argon2id password proof while preserving the credential's canonical grant and scope.

`POST /v1/spaces/{spaceId}/password-credentials/{credentialId}/rotate`

**Request body** (`application/json`, required)

- `password` (string, required)

Request body example:

```json
{
  "password": "stringstringstr"
}
```

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "id": "string",
    "grant": {
      "grant": {
        "name": "string",
        "audience": {
          "kind": "public"
        },
        "resources": {
          "include": [
            "string"
          ],
          "exclude": []
        },
        "capabilities": [
          "page.view"
        ],
        "constraints": {},
        "target": {
          "kind": "live"
        },
        "id": "string",
        "source": {
          "kind": "config",
          "reference": "string"
        }
      },
      "generation": 1,
      "status": "scheduled",
      "sourceExplanation": {
        "editable": true,
        "label": "string",
        "detail": "string"
      },
      "createdAt": "2019-08-24T14:15:22Z",
      "updatedAt": "2019-08-24T14:15:22Z"
    },
    "rotatedAt": "2019-08-24T14:15:22Z",
    "lastUsedAt": "2019-08-24T14:15:22Z",
    "revokedAt": "2019-08-24T14:15:22Z"
  }
}
```
