> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/miria-4.6/reference-documentation/rest-api-reference/activity.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Activity

## GET /activity/events/

> \
> Get a list of events.\
> \
> Events are ordered from most recent to oldest.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PaginatedEventListList":{"type":"object","required":["results"],"properties":{"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/EventList"}}}},"EventList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"creationDate":{"type":"string","format":"date-time","readOnly":true},"sourceId":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"sourceName":{"type":"string","maxLength":256},"user":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"mode":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"object":{"type":"string","maxLength":128},"session":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"task":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"program":{"type":"string","maxLength":128},"package":{"type":"string","maxLength":128},"function":{"type":"string","maxLength":128},"line":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"severity":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"pid":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"thread":{"type":"string","format":"decimal","pattern":"^-?\\d{0,15}(?:\\.\\d{0,0})?$"},"value":{"type":"string","nullable":true},"content":{"type":"array","items":{"$ref":"#/components/schemas/EventContentForEvent"},"readOnly":true}},"required":["content","creationDate","function","id","line","mode","object","package","pid","program","severity","sourceName","thread","user"]},"EventContentForEvent":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"job":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"queue":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"queueArchiveClass":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true}},"required":["id"]}}},"paths":{"/activity/events/":{"get":{"operationId":"activityEventsList","description":"\nGet a list of events.\n\nEvents are ordered from most recent to oldest.\n","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"cursor","required":false,"in":"query","description":"The pagination cursor value.","schema":{"type":"string"}},{"in":"query","name":"limit","schema":{"type":"integer"},"description":"Number of results to return per page."},{"in":"query","name":"job","schema":{"type":"integer"},"description":"Filtering by nested object content/job"},{"in":"query","name":"queue","schema":{"type":"integer"},"description":"Filtering by nested object content/queue"}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedEventListList"}}},"description":""}}}}}}
```

## GET /activity/events/{id}/

> Get an existing event

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"EventList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"creationDate":{"type":"string","format":"date-time","readOnly":true},"sourceId":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"sourceName":{"type":"string","maxLength":256},"user":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"mode":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"object":{"type":"string","maxLength":128},"session":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"task":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"program":{"type":"string","maxLength":128},"package":{"type":"string","maxLength":128},"function":{"type":"string","maxLength":128},"line":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"severity":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"pid":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"thread":{"type":"string","format":"decimal","pattern":"^-?\\d{0,15}(?:\\.\\d{0,0})?$"},"value":{"type":"string","nullable":true},"content":{"type":"array","items":{"$ref":"#/components/schemas/EventContentForEvent"},"readOnly":true}},"required":["content","creationDate","function","id","line","mode","object","package","pid","program","severity","sourceName","thread","user"]},"EventContentForEvent":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"job":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"queue":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"queueArchiveClass":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true}},"required":["id"]}}},"paths":{"/activity/events/{id}/":{"get":{"operationId":"activityEventsRetrieve","description":"Get an existing event","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this event.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}},"description":""}}}}}}
```

## GET /activity/jobs/

> Get a list of jobs

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PaginatedJobListList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/JobList"}}}},"JobList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"hostName":{"type":"string","maxLength":128},"isRestartable":{"type":"string","readOnly":true},"user":{"allOf":[{"$ref":"#/components/schemas/UserShort"}],"readOnly":true},"archive":{"allOf":[{"$ref":"#/components/schemas/ArchiveShort"}],"readOnly":true},"queue":{"type":"array","items":{"$ref":"#/components/schemas/QueueId"},"readOnly":true},"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastUpdate":{"type":"string","format":"date-time","nullable":true},"type":{"type":"string","readOnly":true},"typeValue":{"type":"integer","readOnly":true},"status":{"type":"string","readOnly":true},"statusValue":{"type":"integer","readOnly":true},"cause":{"type":"string","readOnly":true},"capmask":{"type":"string","readOnly":true}},"required":["archive","capmask","cause","creationDate","hostName","id","isRestartable","queue","status","statusValue","type","typeValue","user"]},"UserShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":128}},"required":["id","name"]},"ArchiveShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","pattern":"[/\\u005c:]","maxLength":256}},"required":["id","name"]},"QueueId":{"type":"object","properties":{"id":{"type":"integer","readOnly":true}},"required":["id"]}}},"paths":{"/activity/jobs/":{"get":{"operationId":"activityJobsList","description":"Get a list of jobs","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedJobListList"}}},"description":""}}}}}}
```

## PUT /activity/jobs/{id}/queue/{queueId}/

> \
> \*\*Queue encryption validation\*\*\
> \
> Eligible queues for validation must have the following validated attributes (visible in the detailed description of the corresponding job):\<br>\
> \- the status field to "Running"\<br>\
> \- the "encryptionDescription" field is not null\<br>\
> \- the "encryptionInfo" field is null\<br><br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/queue/{queueId}/":{"put":{"operationId":"activityJobsQueueUpdate","description":"\n**Queue encryption validation**\n\nEligible queues for validation must have the following validated attributes (visible in the detailed description of the corresponding job):<br>\n- the status field to \"Running\"<br>\n- the \"encryptionDescription\" field is not null<br>\n- the \"encryptionInfo\" field is null<br>\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true},{"in":"path","name":"queueId","schema":{"type":"integer"},"required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/relaunch/

> Relaunch an Easy Move Job

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/relaunch/":{"get":{"operationId":"activityJobsRelaunchRetrieve","description":"Relaunch an Easy Move Job","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this job.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/restart/

> Restart a specific Job, terminated on error (with restartable status)

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/restart/":{"get":{"operationId":"activityJobsRestartRetrieve","description":"Restart a specific Job, terminated on error (with restartable status)","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this job.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/

> \*\*Get an existing job\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type\*\*: One value in :\
> \['Archiving', 'Retrieval', 'Task', 'Retention', 'Media Duplication', 'Media Deletion', 'Media Recycling', 'Media Scratch', 'Media Ejection', 'Drive Diagnostic', 'Drive Performance', 'AER Collect', 'Amm Scan Device', 'Drive Umount', 'Storage Manager Maintenance', 'LTFS Change Volume Name', 'Copy', 'Catalog Ingest', 'Media Mount', 'Move', 'Delete', 'Create Directory', 'Rename', 'Library Scan Unknown Media', 'Synchronization', 'Media Verify', 'Archive Tiering', 'Synchronization Digest', 'LTFS Change Volume Lock State', 'Tape Cache', 'FSC to tape', 'Erasure Coding', 'Media Build', 'Database Transaction']\
> \
> \*\*status\*\*: One value in :\
> \['Creation in progress', 'On Validation', 'In Queue', 'Running', 'Suspended', 'Canceled', 'Denied', 'Completed', 'Terminated on error', 'Invalid License', 'Terminated on warning']\
> \
> \*\*priority\*\*: One value in :\
> \['Lowest', 'Normal', 'Highest']\
> \
> \*\*backupType\*\*: One value in :\
> \['Full', 'Incremental']\
> \
> \*\*capmask\*\*: One value or several values in :\
> \[(0, 'None'), (1, 'HSM Cli'), (2, 'HSM Filter Driver'), (4, 'SML'), (8, 'Graphic Interface'), (16, 'Scheduler'), (32, 'TPL'), (64, 'Execute'), (128, 'List'), (256, 'Command Mode'), (512, 'Final Cut Server'), (1024, 'Content Indexing'), (2048, 'Logger'), (4096, 'Final Cut Pro'), (8192, 'Avid Interplay'), (16384, 'API'), (32768, 'Web Monitor'), (65536, 'Fork (PrimeStream)'), (131072, 'Offline'), (262144, 'Fork Drone (PrimeStream)'), (2097152, 'RestAPI'), (136, 'Graphic Interface'), (72, 'Graphic Interface'), (80, 'Scheduled Task'), (384, 'Command Mode'), (320, 'Command Mode'), (416, 'Manual Task'), (352, 'Manual Task'), (48, 'Scheduled Task'), (52, 'SML Scheduled Task'), (44, 'SML UI Manual Task'), (288, 'Manual Task'), (40, 'UI Manual Task'), (292, 'SML Manual Task'), (33, 'HSM Client')]\
> \
> \*\*queue/archiveMode\*\*: One value in :\
> \['standard mode', 'backup mode', 'mode by capa']\
> \
> \*\*queue/status\*\*: One value in :\
> \['Creation in progress', 'On Validation', 'In Queue', 'Running', 'Suspended', 'Canceled', 'Denied', 'Completed', 'Terminated on error', 'Invalid License', 'Terminated on warning']\
> \
> \*\*queue/currentType\*\*: One value in :\
> \['none', 'object', 'archive path', 'msg', 'media', 'drive']\
> \
> \*\*cause\*\*: One value in :\
> \['None', 'Quota archive exceeded', 'Quota retrieve exceeded', 'Overwrite protection is activated', 'Archiving job quota exceeded (Easy Move)', 'Mountpoint does not exist']\
> &#x20;  &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"JobDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"hostName":{"type":"string","maxLength":128},"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastUpdate":{"type":"string","format":"date-time","nullable":true},"type":{"type":"string","readOnly":true},"typeValue":{"type":"integer","readOnly":true},"user":{"allOf":[{"$ref":"#/components/schemas/UserShort"}],"readOnly":true},"archive":{"allOf":[{"$ref":"#/components/schemas/ArchiveForJob"}],"readOnly":true},"status":{"type":"string","readOnly":true},"statusValue":{"type":"integer","readOnly":true},"expectedVolume":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"volume":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"expectedNumberFiles":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"numberFiles":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"expectedNumberDirectories":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"numberDirectories":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"osType":{"$ref":"#/components/schemas/OsTypeEnum"},"priority":{"type":"string","readOnly":true},"isRestartable":{"type":"string","readOnly":true},"backupDate":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"cause":{"type":"string","readOnly":true},"checking":{"type":"string","format":"decimal","pattern":"^-?\\d{0,1}(?:\\.\\d{0,0})?$","nullable":true},"capmask":{"type":"string","readOnly":true},"parent":{"type":"integer","nullable":true},"backupType":{"type":"string","readOnly":true},"runningAction":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"actions":{"type":"array","items":{"$ref":"#/components/schemas/JobsActionForJob"},"readOnly":true},"detail":{"type":"array","items":{"$ref":"#/components/schemas/JobsDetailForJob"},"readOnly":true},"queue":{"type":"array","items":{"$ref":"#/components/schemas/QueueForJob"},"readOnly":true}},"required":["actions","archive","backupType","capmask","cause","creationDate","detail","hostName","id","isRestartable","osType","priority","queue","status","statusValue","type","typeValue","user"]},"UserShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":128}},"required":["id","name"]},"ArchiveForJob":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","pattern":"[/\\u005c:]","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"comment":{"type":"string","nullable":true,"maxLength":512},"owner":{"type":"integer","nullable":true},"volumeQuota":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"type":{"$ref":"#/components/schemas/TypeA48Enum"},"mode":{"$ref":"#/components/schemas/ModeEnum"},"organization":{"allOf":[{"$ref":"#/components/schemas/ArchiveOrganizationAll"}],"readOnly":true}},"required":["creationDate","id","mode","name","organization","type"]},"TypeA48Enum":{"enum":[1,2,4],"type":"integer","description":"* `1` - user\n* `2` - project\n* `4` - synchro"},"ModeEnum":{"enum":[0,1,2],"type":"integer","description":"* `0` - archiving\n* `1` - backup\n* `2` - by setting"},"ArchiveOrganizationAll":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"comment":{"type":"string","nullable":true},"creationDate":{"type":"string","format":"date-time","readOnly":true},"parent":{"type":"integer","nullable":true}},"required":["creationDate","id","name"]},"OsTypeEnum":{"enum":[1,2],"type":"integer","description":"* `1` - Unix/MacOS\n* `2` - Windows"},"JobsActionForJob":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"action":{"type":"string","readOnly":true},"order":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"parameter":{"type":"string","nullable":true},"creationDate":{"type":"string","format":"date-time","readOnly":true},"storageContainer":{"allOf":[{"$ref":"#/components/schemas/StorageContainerShort"}],"readOnly":true},"retention":{"allOf":[{"$ref":"#/components/schemas/RetentionAll"}],"readOnly":true},"jaRetention":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"task":{"allOf":[{"$ref":"#/components/schemas/TaskShort"}],"readOnly":true},"taskFamily":{"allOf":[{"$ref":"#/components/schemas/TaskFamilyShort"}],"readOnly":true},"host":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"queueOsType":{"type":"string","readOnly":true},"nextAction":{"$ref":"#/components/schemas/JobsActionShort"}},"required":["action","creationDate","host","id","queueOsType","retention","storageContainer","task","taskFamily"]},"StorageContainerShort":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","nullable":true,"maxLength":128}},"required":["id"]},"RetentionAll":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"value":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"Unit":{"nullable":true,"title":"Unit","minimum":-2147483648,"maximum":2147483647,"oneOf":[{"$ref":"#/components/schemas/_unitEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"maxVersion":{"type":"string","format":"decimal","pattern":"^-?\\d{0,3}(?:\\.\\d{0,0})?$"},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["id","maxVersion","name"]},"_unitEnum":{"enum":[0,1,2,3,4],"type":"integer","description":"* `0` - none\n* `1` - days\n* `2` - weeks\n* `3` - months\n* `4` - years"},"NullEnum":{"enum":[null]},"TaskShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":80}},"required":["id","name"]},"TaskFamilyShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":40}},"required":["id","name"]},"HostShort":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256}},"required":["id","name"]},"JobsActionShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"action":{"type":"string","readOnly":true}},"required":["action","id"]},"JobsDetailForJob":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"level":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"creationDate":{"type":"string","format":"date-time","nullable":true},"value":{"type":"string","nullable":true},"file":{"type":"string","nullable":true},"task":{"allOf":[{"$ref":"#/components/schemas/TaskShort"}],"readOnly":true},"family":{"allOf":[{"$ref":"#/components/schemas/TaskFamilyShort"}],"readOnly":true}},"required":["family","id","task"]},"QueueForJob":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"creationDate":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","readOnly":true},"osType":{"type":"string","readOnly":true},"host":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"nbFile":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbFileExpected":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbFileMonitor":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbDir":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbDirExpected":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"volume":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"volumeExpected":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"volumeMonitor":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"retry":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"action":{"allOf":[{"$ref":"#/components/schemas/JobsActionShort"}],"readOnly":true},"queueFirst":{"allOf":[{"$ref":"#/components/schemas/QueueId"}],"readOnly":true},"schedule":{"type":"string","format":"decimal","pattern":"^-?\\d{0,1}(?:\\.\\d{0,0})?$"},"task":{"allOf":[{"$ref":"#/components/schemas/TaskShort"}],"readOnly":true},"family":{"allOf":[{"$ref":"#/components/schemas/TaskFamilyShort"}],"readOnly":true},"hostOrigin":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"osTypeOrigin":{"type":"string","readOnly":true},"archiveMode":{"type":"string","readOnly":true},"queueArchiveDetailStatus":{"type":"string","readOnly":true},"capacityQueueStatus":{"type":"string","readOnly":true},"mediaStatus":{"type":"string","readOnly":true},"currentObject":{"type":"string","nullable":true,"maxLength":256},"currentType":{"type":"string","readOnly":true},"hostRun":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"storageManagerAsSource":{"type":"string","format":"decimal","pattern":"^-?\\d{0,1}(?:\\.\\d{0,0})?$"},"splitType":{"type":"string","readOnly":true},"splitKey":{"type":"string","nullable":true,"maxLength":64},"hostDest":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"osTypeDest":{"type":"string","readOnly":true},"hostOriginDest":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"osTypeOriginDest":{"type":"string","readOnly":true},"hostRunDest":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"storageContNeeded":{"allOf":[{"$ref":"#/components/schemas/StorageContainerShort"}],"readOnly":true},"application":{"allOf":[{"$ref":"#/components/schemas/ApplicationShort"}],"readOnly":true},"curSpeed":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"speed":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"curSpeedNbFile":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"speedNbFile":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"encryptionRuleHistory":{"allOf":[{"$ref":"#/components/schemas/EncryptionRuleHistoryList"}],"readOnly":true},"encryptionInfo":{"type":"string","nullable":true},"encryptionDescription":{"type":"string","readOnly":true,"default":""}},"required":["action","application","archiveMode","capacityQueueStatus","currentType","encryptionDescription","encryptionRuleHistory","family","host","hostDest","hostOrigin","hostOriginDest","hostRun","hostRunDest","id","mediaStatus","osType","osTypeDest","osTypeOrigin","osTypeOriginDest","queueArchiveDetailStatus","queueFirst","schedule","splitType","status","storageContNeeded","storageManagerAsSource","task"]},"QueueId":{"type":"object","properties":{"id":{"type":"integer","readOnly":true}},"required":["id"]},"ApplicationShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256}},"required":["id","name"]},"EncryptionRuleHistoryList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"rule":{"$ref":"#/components/schemas/EncryptionRuleList"},"version":{"type":"integer"}},"required":["id","rule","version"]},"EncryptionRuleList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string"},"version":{"type":"integer"}},"required":["id","name"]}}},"paths":{"/activity/jobs/{id}/":{"get":{"operationId":"activityJobsRetrieve","description":"**Get an existing job**\n\n**Complementary information about output:**\n\n**type**: One value in :\n['Archiving', 'Retrieval', 'Task', 'Retention', 'Media Duplication', 'Media Deletion', 'Media Recycling', 'Media Scratch', 'Media Ejection', 'Drive Diagnostic', 'Drive Performance', 'AER Collect', 'Amm Scan Device', 'Drive Umount', 'Storage Manager Maintenance', 'LTFS Change Volume Name', 'Copy', 'Catalog Ingest', 'Media Mount', 'Move', 'Delete', 'Create Directory', 'Rename', 'Library Scan Unknown Media', 'Synchronization', 'Media Verify', 'Archive Tiering', 'Synchronization Digest', 'LTFS Change Volume Lock State', 'Tape Cache', 'FSC to tape', 'Erasure Coding', 'Media Build', 'Database Transaction']\n\n**status**: One value in :\n['Creation in progress', 'On Validation', 'In Queue', 'Running', 'Suspended', 'Canceled', 'Denied', 'Completed', 'Terminated on error', 'Invalid License', 'Terminated on warning']\n\n**priority**: One value in :\n['Lowest', 'Normal', 'Highest']\n\n**backupType**: One value in :\n['Full', 'Incremental']\n\n**capmask**: One value or several values in :\n[(0, 'None'), (1, 'HSM Cli'), (2, 'HSM Filter Driver'), (4, 'SML'), (8, 'Graphic Interface'), (16, 'Scheduler'), (32, 'TPL'), (64, 'Execute'), (128, 'List'), (256, 'Command Mode'), (512, 'Final Cut Server'), (1024, 'Content Indexing'), (2048, 'Logger'), (4096, 'Final Cut Pro'), (8192, 'Avid Interplay'), (16384, 'API'), (32768, 'Web Monitor'), (65536, 'Fork (PrimeStream)'), (131072, 'Offline'), (262144, 'Fork Drone (PrimeStream)'), (2097152, 'RestAPI'), (136, 'Graphic Interface'), (72, 'Graphic Interface'), (80, 'Scheduled Task'), (384, 'Command Mode'), (320, 'Command Mode'), (416, 'Manual Task'), (352, 'Manual Task'), (48, 'Scheduled Task'), (52, 'SML Scheduled Task'), (44, 'SML UI Manual Task'), (288, 'Manual Task'), (40, 'UI Manual Task'), (292, 'SML Manual Task'), (33, 'HSM Client')]\n\n**queue/archiveMode**: One value in :\n['standard mode', 'backup mode', 'mode by capa']\n\n**queue/status**: One value in :\n['Creation in progress', 'On Validation', 'In Queue', 'Running', 'Suspended', 'Canceled', 'Denied', 'Completed', 'Terminated on error', 'Invalid License', 'Terminated on warning']\n\n**queue/currentType**: One value in :\n['none', 'object', 'archive path', 'msg', 'media', 'drive']\n\n**cause**: One value in :\n['None', 'Quota archive exceeded', 'Quota retrieve exceeded', 'Overwrite protection is activated', 'Archiving job quota exceeded (Easy Move)', 'Mountpoint does not exist']\n    ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this job.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDetail"}}},"description":""}}}}}}
```

## PUT /activity/jobs/{id}/

> Update an existing job

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"JobDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"hostName":{"type":"string","maxLength":128},"creationDate":{"type":"string","format":"date-time","readOnly":true},"lastUpdate":{"type":"string","format":"date-time","nullable":true},"type":{"type":"string","readOnly":true},"typeValue":{"type":"integer","readOnly":true},"user":{"allOf":[{"$ref":"#/components/schemas/UserShort"}],"readOnly":true},"archive":{"allOf":[{"$ref":"#/components/schemas/ArchiveForJob"}],"readOnly":true},"status":{"type":"string","readOnly":true},"statusValue":{"type":"integer","readOnly":true},"expectedVolume":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"volume":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"expectedNumberFiles":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"numberFiles":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"expectedNumberDirectories":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"numberDirectories":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"osType":{"$ref":"#/components/schemas/OsTypeEnum"},"priority":{"type":"string","readOnly":true},"isRestartable":{"type":"string","readOnly":true},"backupDate":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"cause":{"type":"string","readOnly":true},"checking":{"type":"string","format":"decimal","pattern":"^-?\\d{0,1}(?:\\.\\d{0,0})?$","nullable":true},"capmask":{"type":"string","readOnly":true},"parent":{"type":"integer","nullable":true},"backupType":{"type":"string","readOnly":true},"runningAction":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"actions":{"type":"array","items":{"$ref":"#/components/schemas/JobsActionForJob"},"readOnly":true},"detail":{"type":"array","items":{"$ref":"#/components/schemas/JobsDetailForJob"},"readOnly":true},"queue":{"type":"array","items":{"$ref":"#/components/schemas/QueueForJob"},"readOnly":true}},"required":["actions","archive","backupType","capmask","cause","creationDate","detail","hostName","id","isRestartable","osType","priority","queue","status","statusValue","type","typeValue","user"]},"UserShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":128}},"required":["id","name"]},"ArchiveForJob":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","pattern":"[/\\u005c:]","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"comment":{"type":"string","nullable":true,"maxLength":512},"owner":{"type":"integer","nullable":true},"volumeQuota":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"type":{"$ref":"#/components/schemas/TypeA48Enum"},"mode":{"$ref":"#/components/schemas/ModeEnum"},"organization":{"allOf":[{"$ref":"#/components/schemas/ArchiveOrganizationAll"}],"readOnly":true}},"required":["creationDate","id","mode","name","organization","type"]},"TypeA48Enum":{"enum":[1,2,4],"type":"integer","description":"* `1` - user\n* `2` - project\n* `4` - synchro"},"ModeEnum":{"enum":[0,1,2],"type":"integer","description":"* `0` - archiving\n* `1` - backup\n* `2` - by setting"},"ArchiveOrganizationAll":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"comment":{"type":"string","nullable":true},"creationDate":{"type":"string","format":"date-time","readOnly":true},"parent":{"type":"integer","nullable":true}},"required":["creationDate","id","name"]},"OsTypeEnum":{"enum":[1,2],"type":"integer","description":"* `1` - Unix/MacOS\n* `2` - Windows"},"JobsActionForJob":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"action":{"type":"string","readOnly":true},"order":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"parameter":{"type":"string","nullable":true},"creationDate":{"type":"string","format":"date-time","readOnly":true},"storageContainer":{"allOf":[{"$ref":"#/components/schemas/StorageContainerShort"}],"readOnly":true},"retention":{"allOf":[{"$ref":"#/components/schemas/RetentionAll"}],"readOnly":true},"jaRetention":{"type":"string","format":"decimal","pattern":"^-?\\d{0,13}(?:\\.\\d{0,0})?$","nullable":true},"task":{"allOf":[{"$ref":"#/components/schemas/TaskShort"}],"readOnly":true},"taskFamily":{"allOf":[{"$ref":"#/components/schemas/TaskFamilyShort"}],"readOnly":true},"host":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"queueOsType":{"type":"string","readOnly":true},"nextAction":{"$ref":"#/components/schemas/JobsActionShort"}},"required":["action","creationDate","host","id","queueOsType","retention","storageContainer","task","taskFamily"]},"StorageContainerShort":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","nullable":true,"maxLength":128}},"required":["id"]},"RetentionAll":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"value":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"Unit":{"nullable":true,"title":"Unit","minimum":-2147483648,"maximum":2147483647,"oneOf":[{"$ref":"#/components/schemas/_unitEnum"},{"$ref":"#/components/schemas/NullEnum"}]},"maxVersion":{"type":"string","format":"decimal","pattern":"^-?\\d{0,3}(?:\\.\\d{0,0})?$"},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["id","maxVersion","name"]},"_unitEnum":{"enum":[0,1,2,3,4],"type":"integer","description":"* `0` - none\n* `1` - days\n* `2` - weeks\n* `3` - months\n* `4` - years"},"NullEnum":{"enum":[null]},"TaskShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":80}},"required":["id","name"]},"TaskFamilyShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":40}},"required":["id","name"]},"HostShort":{"type":"object","description":"Adds nested create feature","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256}},"required":["id","name"]},"JobsActionShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"action":{"type":"string","readOnly":true}},"required":["action","id"]},"JobsDetailForJob":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"level":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"creationDate":{"type":"string","format":"date-time","nullable":true},"value":{"type":"string","nullable":true},"file":{"type":"string","nullable":true},"task":{"allOf":[{"$ref":"#/components/schemas/TaskShort"}],"readOnly":true},"family":{"allOf":[{"$ref":"#/components/schemas/TaskFamilyShort"}],"readOnly":true}},"required":["family","id","task"]},"QueueForJob":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"creationDate":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string","readOnly":true},"osType":{"type":"string","readOnly":true},"host":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"nbFile":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbFileExpected":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbFileMonitor":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbDir":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"nbDirExpected":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"volume":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"volumeExpected":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"volumeMonitor":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"retry":{"type":"integer","maximum":2147483647,"minimum":-2147483648,"nullable":true},"action":{"allOf":[{"$ref":"#/components/schemas/JobsActionShort"}],"readOnly":true},"queueFirst":{"allOf":[{"$ref":"#/components/schemas/QueueId"}],"readOnly":true},"schedule":{"type":"string","format":"decimal","pattern":"^-?\\d{0,1}(?:\\.\\d{0,0})?$"},"task":{"allOf":[{"$ref":"#/components/schemas/TaskShort"}],"readOnly":true},"family":{"allOf":[{"$ref":"#/components/schemas/TaskFamilyShort"}],"readOnly":true},"hostOrigin":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"osTypeOrigin":{"type":"string","readOnly":true},"archiveMode":{"type":"string","readOnly":true},"queueArchiveDetailStatus":{"type":"string","readOnly":true},"capacityQueueStatus":{"type":"string","readOnly":true},"mediaStatus":{"type":"string","readOnly":true},"currentObject":{"type":"string","nullable":true,"maxLength":256},"currentType":{"type":"string","readOnly":true},"hostRun":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"storageManagerAsSource":{"type":"string","format":"decimal","pattern":"^-?\\d{0,1}(?:\\.\\d{0,0})?$"},"splitType":{"type":"string","readOnly":true},"splitKey":{"type":"string","nullable":true,"maxLength":64},"hostDest":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"osTypeDest":{"type":"string","readOnly":true},"hostOriginDest":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"osTypeOriginDest":{"type":"string","readOnly":true},"hostRunDest":{"allOf":[{"$ref":"#/components/schemas/HostShort"}],"readOnly":true},"storageContNeeded":{"allOf":[{"$ref":"#/components/schemas/StorageContainerShort"}],"readOnly":true},"application":{"allOf":[{"$ref":"#/components/schemas/ApplicationShort"}],"readOnly":true},"curSpeed":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"speed":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"curSpeedNbFile":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"speedNbFile":{"type":"string","format":"decimal","pattern":"^-?\\d{0,18}(?:\\.\\d{0,0})?$","nullable":true},"encryptionRuleHistory":{"allOf":[{"$ref":"#/components/schemas/EncryptionRuleHistoryList"}],"readOnly":true},"encryptionInfo":{"type":"string","nullable":true},"encryptionDescription":{"type":"string","readOnly":true,"default":""}},"required":["action","application","archiveMode","capacityQueueStatus","currentType","encryptionDescription","encryptionRuleHistory","family","host","hostDest","hostOrigin","hostOriginDest","hostRun","hostRunDest","id","mediaStatus","osType","osTypeDest","osTypeOrigin","osTypeOriginDest","queueArchiveDetailStatus","queueFirst","schedule","splitType","status","storageContNeeded","storageManagerAsSource","task"]},"QueueId":{"type":"object","properties":{"id":{"type":"integer","readOnly":true}},"required":["id"]},"ApplicationShort":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256}},"required":["id","name"]},"EncryptionRuleHistoryList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"rule":{"$ref":"#/components/schemas/EncryptionRuleList"},"version":{"type":"integer"}},"required":["id","rule","version"]},"EncryptionRuleList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string"},"version":{"type":"integer"}},"required":["id","name"]}}},"paths":{"/activity/jobs/{id}/":{"put":{"operationId":"activityJobsUpdate","description":"Update an existing job","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this job.","required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDetail"}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/cancel/

> Cancel an existing job

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/cancel/":{"get":{"operationId":"activityJobsCancelRetrieve","description":"Cancel an existing job","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this job.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/metadatas/

> \
> \*\*Get list of metadatas linked to current object, repository, instance or job.\*\*\
> \
> Note that, if any, 'object' or 'instance' path parameters are numeric identifiers.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/metadatas/":{"get":{"operationId":"activityJobsMetadatasRetrieve","description":"\n**Get list of metadatas linked to current object, repository, instance or job.**\n\nNote that, if any, 'object' or 'instance' path parameters are numeric identifiers.\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the job","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/metadatas/{metadataId}/

> \
> \*\*Get details of metadatas linked to current object, repository, instance or job\*\*\
> \
> Note that, if any, 'object' or 'instance' path parameters are numeric identifiers.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/metadatas/{metadataId}/":{"get":{"operationId":"activityJobsMetadatasRetrieve2","description":"\n**Get details of metadatas linked to current object, repository, instance or job**\n\nNote that, if any, 'object' or 'instance' path parameters are numeric identifiers.\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the job.","required":true},{"in":"path","name":"metadataId","schema":{"type":"integer"},"description":"A unique integer value identifying a metadata.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/queues/{queueId}/drives/

> \*\*Get a name of drive or media linked to a AMM queue\*\*

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/queues/{queueId}/drives/":{"get":{"operationId":"driveMediaList","description":"**Get a name of drive or media linked to a AMM queue**","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this job.","required":true},{"in":"path","name":"queueId","schema":{"type":"integer"},"description":"A unique integer value identifying a queue.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":""}}}}}},"description":""}}}}}}
```

## GET /activity/jobs/{id}/queues/{queueId}/medias/

> \*\*Get a list of Medias linked to a AMM queue\*\*

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/jobs/{id}/queues/{queueId}/medias/":{"get":{"operationId":"queueMediaList","description":"**Get a list of Medias linked to a AMM queue**","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this job.","required":true},{"in":"path","name":"queueId","schema":{"type":"integer"},"description":"A unique integer value identifying a queue.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":""}}}}}},"description":""}}}}}}
```

## GET /activity/run-locks/

> Get a list of run locks

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PaginatedRunLockListList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/RunLockList"}}}},"RunLockList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256}},"required":["id","name"]}}},"paths":{"/activity/run-locks/":{"get":{"operationId":"activityRunLocksList","description":"Get a list of run locks","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRunLockListList"}}},"description":""}}}}}}
```

## POST /activity/run-locks/

> \
> \*\*Create a new run lock\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: Name of new runlock, it should not exist else where\
> in the table.\
> \
> \*\*maxSimultaneousRuns(required)\*\*: The maximum number of simultaneous runs. Must be set between 1 and 999.\
> \
> \*\*comment\*\*: comment on the new run lock.\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"RunLockDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"maxSimultaneousRuns":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["creationDate","id","maxSimultaneousRuns","name"]}}},"paths":{"/activity/run-locks/":{"post":{"operationId":"activityRunLocksCreate","description":"\n**Create a new run lock**\n\n**Input payload with:**\n\n**name (required)**: Name of new runlock, it should not exist else where\nin the table.\n\n**maxSimultaneousRuns(required)**: The maximum number of simultaneous runs. Must be set between 1 and 999.\n\n**comment**: comment on the new run lock.\n        ","tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunLockDetail"}}},"description":""}}}}}}
```

## GET /activity/run-locks/{id}/

> Get an existing run lock

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"RunLockDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"maxSimultaneousRuns":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["creationDate","id","maxSimultaneousRuns","name"]}}},"paths":{"/activity/run-locks/{id}/":{"get":{"operationId":"activityRunLocksRetrieve","description":"Get an existing run lock","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task lock.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunLockDetail"}}},"description":""}}}}}}
```

## PUT /activity/run-locks/{id}/

> \
> \*\*Update an existing run lock\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: New name of runlock, it should not exist else where\
> in the table.\
> \
> \*\*maxSimultaneousRuns(required)\*\*: The maximum number of simultaneous runs. Must be set between 1 and 999.\
> \
> \*\*comment\*\*: comment on the existing run lock.\
> &#x20;  &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"RunLockDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"maxSimultaneousRuns":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["creationDate","id","maxSimultaneousRuns","name"]}}},"paths":{"/activity/run-locks/{id}/":{"put":{"operationId":"activityRunLocksUpdate","description":"\n**Update an existing run lock**\n\n**Input payload with:**\n\n**name (required)**: New name of runlock, it should not exist else where\nin the table.\n\n**maxSimultaneousRuns(required)**: The maximum number of simultaneous runs. Must be set between 1 and 999.\n\n**comment**: comment on the existing run lock.\n    ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task lock.","required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunLockDetail"}}},"description":""}}}}}}
```

## GET /activity/run-timeframes/

> Get a list of run time frames

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"PaginatedRunTimeFrameListList":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"$ref":"#/components/schemas/RunTimeFrameList"}}}},"RunTimeFrameList":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256}},"required":["id","name"]}}},"paths":{"/activity/run-timeframes/":{"get":{"operationId":"activityRunTimeframesList","description":"Get a list of run time frames","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedRunTimeFrameListList"}}},"description":""}}}}}}
```

## POST /activity/run-timeframes/

> \
> \*\*Create a new run time frame\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\*: Name of new time-frame, it should not exist else where\
> in the table.\
> \
> \*\*timeFrame\*\*: An array of time-frame descriptions (could be empty). Each time-fame contains the following fields\
> \
> (not mandatory : if they aren't filled it will be create with full options set, minutes= -1 and type= "exclude")\
> \
> \*\*Type\*\*: 'Include' or 'Exclude' set values\
> \
> \*\*daysOffset\*\*: days number in a week (base 'sunday' : 0)\
> \
> \*\*hours\*\*: selected hours in the day \[0-23].\
> \
> \*\*minutes\*\*: in minute, every elapsed times the run will be triggered\
> \
> \*\*occurenceInMonth\*\*: occurrence number for selected days (ex: 1 with monday gives 1rst monday of the month)\
> \
> \*\*offset\*\*: offset in days \[-6:+6] applied on the selected time-frame\
> \
> \*\*comment\*\*: comment on the time-frame<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"RunTimeFrameDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"timeFrame":{"type":"array","items":{"$ref":"#/components/schemas/TimeFrame"}},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["creationDate","id","name"]},"TimeFrame":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/TimeFrameTypeEnum"}],"default":"Exclude"},"hours":{"type":"string","maxLength":72},"daysOffset":{"type":"string","maxLength":14},"offset":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"minutes":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"occurenceInMonth":{"type":"string","maxLength":72}}},"TimeFrameTypeEnum":{"enum":["Exclude","Include"],"type":"string","description":"* `Exclude` - Exclude\n* `Include` - Include"}}},"paths":{"/activity/run-timeframes/":{"post":{"operationId":"activityRunTimeframesCreate","description":"\n**Create a new run time frame**\n\n**Input payload with:**\n\n**name (required)**: Name of new time-frame, it should not exist else where\nin the table.\n\n**timeFrame**: An array of time-frame descriptions (could be empty). Each time-fame contains the following fields\n\n(not mandatory : if they aren't filled it will be create with full options set, minutes= -1 and type= \"exclude\")\n\n**Type**: 'Include' or 'Exclude' set values\n\n**daysOffset**: days number in a week (base 'sunday' : 0)\n\n**hours**: selected hours in the day [0-23].\n\n**minutes**: in minute, every elapsed times the run will be triggered\n\n**occurenceInMonth**: occurrence number for selected days (ex: 1 with monday gives 1rst monday of the month)\n\n**offset**: offset in days [-6:+6] applied on the selected time-frame\n\n**comment**: comment on the time-frame\n","tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunTimeFrameDetail"}}},"description":""}}}}}}
```

## GET /activity/run-timeframes/{id}/

> Get an existing run time frame

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"RunTimeFrameDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"timeFrame":{"type":"array","items":{"$ref":"#/components/schemas/TimeFrame"}},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["creationDate","id","name"]},"TimeFrame":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/TimeFrameTypeEnum"}],"default":"Exclude"},"hours":{"type":"string","maxLength":72},"daysOffset":{"type":"string","maxLength":14},"offset":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"minutes":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"occurenceInMonth":{"type":"string","maxLength":72}}},"TimeFrameTypeEnum":{"enum":["Exclude","Include"],"type":"string","description":"* `Exclude` - Exclude\n* `Include` - Include"}}},"paths":{"/activity/run-timeframes/{id}/":{"get":{"operationId":"activityRunTimeframesRetrieve","description":"Get an existing run time frame","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task window.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunTimeFrameDetail"}}},"description":""}}}}}}
```

## PUT /activity/run-timeframes/{id}/

> \
> \*\*Update a new run time frame\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name\*\*: New name of time-frame.\
> \
> \*\*timeFrame\*\*: An array of time-frame descriptions (could be empty). Each time-fame contains the following fields\
> \
> \*\*Type\*\*: 'Include' or 'Exclude' set values\
> \
> \*\*daysOffset\*\*: days number in a week (base 'sunday' : 0)\
> \
> \*\*hours\*\*: selected hours in the day \[0-23].\
> \
> \*\*minutes\*\*: in minute, every elapsed times the run will be triggered\
> \
> \*\*occurenceInMonth\*\*: occurrence number for selected days (ex: 1 with monday gives 1rst monday of the month)\
> \
> \*\*offset\*\*: offset in days \[-6:+6] applied on the selected time-frame\
> \
> \*\*comment\*\*: comment on the time-frame<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"RunTimeFrameDetail":{"type":"object","properties":{"id":{"type":"integer","readOnly":true},"name":{"type":"string","maxLength":256},"creationDate":{"type":"string","format":"date-time","readOnly":true},"timeFrame":{"type":"array","items":{"$ref":"#/components/schemas/TimeFrame"}},"comment":{"type":"string","nullable":true,"maxLength":512}},"required":["creationDate","id","name"]},"TimeFrame":{"type":"object","properties":{"type":{"allOf":[{"$ref":"#/components/schemas/TimeFrameTypeEnum"}],"default":"Exclude"},"hours":{"type":"string","maxLength":72},"daysOffset":{"type":"string","maxLength":14},"offset":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"minutes":{"type":"integer","maximum":2147483647,"minimum":-2147483648},"occurenceInMonth":{"type":"string","maxLength":72}}},"TimeFrameTypeEnum":{"enum":["Exclude","Include"],"type":"string","description":"* `Exclude` - Exclude\n* `Include` - Include"}}},"paths":{"/activity/run-timeframes/{id}/":{"put":{"operationId":"activityRunTimeframesUpdate","description":"\n**Update a new run time frame**\n\n**Input payload with:**\n\n**name**: New name of time-frame.\n\n**timeFrame**: An array of time-frame descriptions (could be empty). Each time-fame contains the following fields\n\n**Type**: 'Include' or 'Exclude' set values\n\n**daysOffset**: days number in a week (base 'sunday' : 0)\n\n**hours**: selected hours in the day [0-23].\n\n**minutes**: in minute, every elapsed times the run will be triggered\n\n**occurenceInMonth**: occurrence number for selected days (ex: 1 with monday gives 1rst monday of the month)\n\n**offset**: offset in days [-6:+6] applied on the selected time-frame\n\n**comment**: comment on the time-frame\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task window.","required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunTimeFrameDetail"}}},"description":""}}}}}}
```

## GET /activity/tasks/

> \*\*Get a list of tasks\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type/name\*\*: One value in \['auto\_archiving', 'auto\_backup', 'auto\_ingest\_def', 'auto\_deletion', 'auto\_retention', 'storage\_repack', 'auto\_synchro', 'tiering', 'db\_backup\_pg', 'maintenance', 'storage\_proxy\_maintenance', 'archive\_report', 'postponed\_fcs\_requests', 'sm\_retention', 'ingest\_xml', 'sm\_tiering', 'archiving', 'copy', 'delete', 'move', 'retention', 'retrieval', 'synchro', 'auto\_fs\_deletion', 'auto\_fs\_move'].\
> \
> \*\*Special filters :\*\*\
> \
> \*\*type\*\*: select the type of the task.\
> \
> \*\*enabled\*\*: select disabled or enabled tasks.\
> \
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/":{"get":{"operationId":"activityTasksList","description":"**Get a list of tasks**\n\n**Complementary information about output:**\n\n**type/name**: One value in ['auto_archiving', 'auto_backup', 'auto_ingest_def', 'auto_deletion', 'auto_retention', 'storage_repack', 'auto_synchro', 'tiering', 'db_backup_pg', 'maintenance', 'storage_proxy_maintenance', 'archive_report', 'postponed_fcs_requests', 'sm_retention', 'ingest_xml', 'sm_tiering', 'archiving', 'copy', 'delete', 'move', 'retention', 'retrieval', 'synchro', 'auto_fs_deletion', 'auto_fs_move'].\n\n**Special filters :**\n\n**type**: select the type of the task.\n\n**enabled**: select disabled or enabled tasks.\n\n        ","parameters":[{"name":"ordering","required":false,"in":"query","description":"Which field to use when ordering the results.","schema":{"type":"string"}},{"name":"limit","required":false,"in":"query","description":"Number of results to return per page.","schema":{"type":"integer"}},{"name":"offset","required":false,"in":"query","description":"The initial index from which to return the results.","schema":{"type":"integer"}},{"in":"query","name":"type","schema":{"type":"string"},"description":"Filtering by task type"},{"in":"query","name":"enabled","schema":{"type":"boolean"},"description":"Filtering by enabled status"}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["count","results"],"properties":{"count":{"type":"integer"},"next":{"type":"string","nullable":true,"format":"uri"},"previous":{"type":"string","nullable":true,"format":"uri"},"results":{"type":"array","items":{"description":""}}}}}},"description":""}}}}}}
```

## POST /activity/tasks/

> Create a new task

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/":{"post":{"operationId":"activityTasksCreate","description":"Create a new task","tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /activity/tasks/{id}/run/

> Run a specific task

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/run/":{"post":{"operationId":"activityTasksRunCreate","description":"Run a specific task","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task.","required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/tasks/{id}/

> \*\*Get an existing task\*\*\
> \
> \*\*Complementary information about output:\*\*\
> \
> \*\*type/name\*\*: One value in :\
> \['auto\_archiving', 'auto\_backup', 'auto\_ingest\_def', 'auto\_deletion', 'auto\_retention', 'storage\_repack', 'auto\_synchro', 'tiering', 'db\_backup\_pg', 'maintenance', 'storage\_proxy\_maintenance', 'archive\_report', 'postponed\_fcs\_requests', 'sm\_retention', 'ingest\_xml', 'sm\_tiering', 'archiving', 'copy', 'delete', 'move', 'retention', 'retrieval', 'synchro', 'auto\_fs\_deletion', 'auto\_fs\_move']\
> \
> \*\*synchroType\*\*: One value in : \["echo", "subscribe", "contribute", "combine"]\
> \
> \*\*migrationReportDigestType\*\*: One value in :\
> \['None', 'MD5', 'SHA-1', 'SHA-256', 'SHA-384', 'SHA-512', 'xxHash32', 'xxHash64']\
> \
> \*\*archiveRules(or deletionRules)/parameters\*\*: One value in :\
> \['last\_access\_date', 'last\_modification\_date', 'creation\_date', 'size', 'archiving\_date', 'type']\
> \
> \*\*archiveRules(or deletionRules)/operator\*\*: One value in :\
> \[\['<', '>=', '=', '!='], \['older\_than', 'newer\_than\_or\_equal'], \['=', '!=']] depending on parameter\
> \
> \*\*archiveRules(or deletionRules)/unit\*\*: One value in :\
> \['#', 'day', 'week', 'month', 'year', 'hour', 'KB', 'MB', 'GB'] depending on parameter\
> \
> \*\*detailsRetention\*\*: One value in :\
> \['days', 'weeks', 'months', 'years']\
> \
> \*\*jobsRetention\*\*: One value in :\
> \['days', 'weeks', 'months', 'years']\
> \
> \*\*eventTypeRetention\*\*: One value in :\
> \['days', 'weeks', 'months', 'years']\
> \
> \*\*layout/format\*\*: One value in :\
> \["a4", "us\_letter"]\
> \
> \*\*layout/orientation\*\*: One value in :\
> \["portrait", "landscape"]\
> \
> \*\*reportInformation/metadata\*\*: One value in :\
> \["none", "job", "object", "all"]\
> \
> \*\*reportInformation/mediaDetails\*\*: One value in :\
> \["none", "media\_by\_job", "folders\_by\_media"]\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/":{"get":{"operationId":"activityTasksRetrieve","description":"**Get an existing task**\n\n**Complementary information about output:**\n\n**type/name**: One value in :\n['auto_archiving', 'auto_backup', 'auto_ingest_def', 'auto_deletion', 'auto_retention', 'storage_repack', 'auto_synchro', 'tiering', 'db_backup_pg', 'maintenance', 'storage_proxy_maintenance', 'archive_report', 'postponed_fcs_requests', 'sm_retention', 'ingest_xml', 'sm_tiering', 'archiving', 'copy', 'delete', 'move', 'retention', 'retrieval', 'synchro', 'auto_fs_deletion', 'auto_fs_move']\n\n**synchroType**: One value in : [\"echo\", \"subscribe\", \"contribute\", \"combine\"]\n\n**migrationReportDigestType**: One value in :\n['None', 'MD5', 'SHA-1', 'SHA-256', 'SHA-384', 'SHA-512', 'xxHash32', 'xxHash64']\n\n**archiveRules(or deletionRules)/parameters**: One value in :\n['last_access_date', 'last_modification_date', 'creation_date', 'size', 'archiving_date', 'type']\n\n**archiveRules(or deletionRules)/operator**: One value in :\n[['<', '>=', '=', '!='], ['older_than', 'newer_than_or_equal'], ['=', '!=']] depending on parameter\n\n**archiveRules(or deletionRules)/unit**: One value in :\n['#', 'day', 'week', 'month', 'year', 'hour', 'KB', 'MB', 'GB'] depending on parameter\n\n**detailsRetention**: One value in :\n['days', 'weeks', 'months', 'years']\n\n**jobsRetention**: One value in :\n['days', 'weeks', 'months', 'years']\n\n**eventTypeRetention**: One value in :\n['days', 'weeks', 'months', 'years']\n\n**layout/format**: One value in :\n[\"a4\", \"us_letter\"]\n\n**layout/orientation**: One value in :\n[\"portrait\", \"landscape\"]\n\n**reportInformation/metadata**: One value in :\n[\"none\", \"job\", \"object\", \"all\"]\n\n**reportInformation/mediaDetails**: One value in :\n[\"none\", \"media_by_job\", \"folders_by_media\"]\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## PUT /activity/tasks/{id}/

> Update a task

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/":{"put":{"operationId":"activityTasksUpdate","description":"Update a task","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## DELETE /activity/tasks/{id}/

> \
> Delete an existing task<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/":{"delete":{"operationId":"activityTasksDestroy","description":"\nDelete an existing task\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task.","required":true},{"in":"query","name":"test","schema":{"type":"boolean"},"description":"Delete in test mode. (default: False)"}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## POST /activity/tasks/{id}/duplicate/

> \
> \*\*Duplicate a specific task\*\*\
> \
> \*\*Input payload with:\*\*\
> \
> \*\*name (required)\*\* : Name of the new instance, must be unique.\ <br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/duplicate/":{"post":{"operationId":"activityTasksDuplicateCreate","description":"\n**Duplicate a specific task**\n\n**Input payload with:**\n\n**name (required)** : Name of the new instance, must be unique.\n\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying this task.","required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"201":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```

## GET /activity/tasks/{id}/settings/

> \
> Get a list of a related object setting values.\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> \
> \*Note :\*To get or set global default settings, you must choose the following end point: /system/settings/\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/settings/":{"get":{"operationId":"activityTasksSettingsRetrieve","description":"\nGet a list of a related object setting values.\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n\n*Note :*To get or set global default settings, you must choose the following end point: /system/settings/\n        ","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"Jobs":{"archiveDirectoryExclusion":"none"}}}},"description":""}}}}}}
```

## GET /activity/tasks/{id}/settings/{setting}/

> \
> Get a related object setting value\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> &#x20;      &#x20;

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/settings/{setting}/":{"get":{"operationId":"activityTasksSettingsRetrieve2","description":"\nGet a related object setting value\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n        ","parameters":[{"in":"path","name":"setting","schema":{"type":"string","pattern":"^[a-zA-Z]+$"},"required":true},{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the setting.","required":true}],"tags":["activity"],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Acknowledgment if the value is recorded"}}},"description":""}}}}}}
```

## PUT /activity/tasks/{id}/settings/{setting}/

> \
> Update a related object setting value\
> \
> The related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\
> \
> Payload for setting value has following format:\
> \
> {"value": \<VALUE\_TO\_SET>}\
> \
> A setting value can be set to None with values "null" or false.<br>

```json
{"openapi":"3.0.3","info":{"title":"Miria REST API","version":"1.0.0"},"servers":[{"url":"/restapi/"}],"security":[{"jwtAuth":[]}],"components":{"securitySchemes":{"jwtAuth":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/activity/tasks/{id}/settings/{setting}/":{"put":{"operationId":"activityTasksSettingsUpdate","description":"\nUpdate a related object setting value\n\nThe related objects can be an archive, a host, a template, a user or user group value (depending on the endpoint).\n\nPayload for setting value has following format:\n\n{\"value\": <VALUE_TO_SET>}\n\nA setting value can be set to None with values \"null\" or false.\n","parameters":[{"in":"path","name":"id","schema":{"type":"integer"},"description":"A unique integer value identifying the setting.","required":true},{"in":"path","name":"setting","schema":{"type":"string"},"required":true}],"tags":["activity"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","additionalProperties":{}}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":""}}},"description":""}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/miria-4.6/reference-documentation/rest-api-reference/activity.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
