# IRPCDeclarativeMetadataStructure.PauseDeclarativeMetadataStructureRevisionGeneration

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Declarative metadata structure](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructure/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructure/PauseDeclarativeMetadataStructureRevisionGeneration/

Badges: `Administration API / specialized` `admin` `session` `returns metadata structure version`

Starts, extends or reads a pause of automatic revision generation for the calling session.

While the pause is active, structure changes made by this session do not each generate a new
revision of the declarative metadata structure. When the pause ends, by
[CancelDeclarativeMetadataStructureRevisionGenerationPause](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructure/CancelDeclarativeMetadataStructureRevisionGenerationPause/index.md)
or by expiry, the server generates one catch-up revision.

- **Service:** [Declarative metadata structure](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructure/index.md) `MFiles.IRPCDeclarativeMetadataStructure`
- **gRPC method:** `/MFiles.IRPCDeclarativeMetadataStructure/PauseDeclarativeMetadataStructureRevisionGeneration`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/pause-declarative-metadata-structure-revision-generation`
- **Request:** [`PauseDeclarativeMetadataStructureRevisionGenerationRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructure/PauseDeclarativeMetadataStructureRevisionGeneration/index.md#request)
- **Response:** [`PauseDeclarativeMetadataStructureRevisionGenerationResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructure/PauseDeclarativeMetadataStructureRevisionGeneration/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** yes (in the mfiles-metadata-version-bin trailer)
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Fails with "Not implemented." unless local revision generation is enabled on the server.
- Requires `change_metadata_structure`.
- A positive `duration_seconds` starts a pause, or extends this session's pause (never shortens
  it). 0 only reads the remaining time and changes nothing. A negative value or more than 3600
  fails with an invalid-argument error.
- Each session has at most one pause, identified by the session itself; other sessions are not
  affected.

<a id="request"></a>

## Request: PauseDeclarativeMetadataStructureRevisionGenerationRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `duration_seconds` | `int32` | The pause length in seconds, 1 to 3600, or 0 to read the status only. |

<a id="response"></a>

## Response: PauseDeclarativeMetadataStructureRevisionGenerationResponse

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `remaining_seconds` | `int32` | Seconds left on this session's pause, rounded up. 0 means no active pause. |

<a id="related"></a>

## Related methods

- [CancelDeclarativeMetadataStructureRevisionGenerationPause](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCDeclarativeMetadataStructure/CancelDeclarativeMetadataStructureRevisionGenerationPause/index.md): Ends the calling session's pause of automatic revision generation.
