{"openapi":"3.1.0","info":{"title":"VBSF API","description":"VBSF API","contact":{"name":"Support","url":"https://veeam.com/support","email":"support@veeam.com"}},"servers":[{"url":"https://www.sf.letsignit.fr","description":"Generated server url"}],"security":[{"bearerAuth":[]}],"tags":[{"name":"Admin","description":"the Admin API"},{"name":"Archival","description":"the Archival API"},{"name":"Auth","description":"the AuthV1 API"},{"name":"Backup","description":"the Backup API"},{"name":"Cloud","description":"the Cloud API"},{"name":"Company","description":"the Company API"},{"name":"Database","description":"the Database API"},{"name":"Download","description":"the Download API"},{"name":"Encryption","description":"the Encryption API"},{"name":"File","description":"the File API"},{"name":"Hierarchy","description":"the Hierarchy API"},{"name":"Idp","description":"the Idp API"},{"name":"License","description":"the License API"},{"name":"Masking","description":"the Masking API"},{"name":"Metadata","description":"the Metadata API"},{"name":"Notification","description":"the Notification API"},{"name":"Object","description":"the Object API"},{"name":"Organization","description":"the Organization API"},{"name":"Proxy","description":"the Proxy API"},{"name":"Restore","description":"the Restore API"},{"name":"RestoreStep","description":"the RestoreStep API"},{"name":"Retention","description":"the Retention API"},{"name":"Schedule","description":"the Schedule API"},{"name":"Settings","description":"the Settings API"},{"name":"Support","description":"the Support API"},{"name":"System","description":"the System API"},{"name":"Updater","description":"the Updater API"},{"name":"User","description":"the User API"}],"paths":{"/api/v1/user/{userId}":{"get":{"tags":["User"],"summary":"Get user details","description":"Get details and scope of a role assigned to user or group by internal or external Id; for example by Salesforce user Id","operationId":"getApplicationUser","parameters":[{"name":"userId","in":"path","description":"user Id or external user Id","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"User details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUserGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["User"],"summary":"Update user","description":"Update details and scope of a role assigned to user or group","operationId":"putApplicationUser","parameters":[{"name":"userId","in":"path","description":"user Id or external user Id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUserPutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"User has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUserGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["User"],"summary":"Delete user","operationId":"deleteApplicationUser","parameters":[{"name":"userId","in":"path","description":"user Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"User has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/schedule/{scheduleId}":{"put":{"tags":["Schedule"],"summary":"Update custom schedule","operationId":"companySchedulesPutRequest","parameters":[{"name":"scheduleId","in":"path","description":"schedule Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySchedulePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Schedule has been updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Schedule"],"summary":"Delete custom schedule","operationId":"companySchedulesDeleteRequest","parameters":[{"name":"scheduleId","in":"path","description":"schedule Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Schedule has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/masking/{templateId}":{"get":{"tags":["Masking"],"summary":"Get data mask template","description":"Get data mask template","operationId":"getDataMaskTemplate","parameters":[{"name":"templateId","in":"path","description":"data mask template Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data mask template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMaskTemplateGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Masking"],"summary":"Update data mask template","description":"Update data mask template","operationId":"updateDataMaskTemplate","parameters":[{"name":"templateId","in":"path","description":"data mask template Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMaskTemplatePutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Updated data mask template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMaskTemplateGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}":{"get":{"tags":["Restore"],"summary":"Get restore job summary information","operationId":"restoreJobGetByIdRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"The restore job information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobGetByIdResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Restore"],"summary":"Update restore job description","operationId":"restoreJobPutRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobPutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"The restore job has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Restore"],"summary":"Delete restore job","operationId":"restoreJobDeleteByIdRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/rule/{id}":{"get":{"tags":["Notification"],"summary":"Get notification rule description","operationId":"notificationRuleByIdGetRequest","parameters":[{"name":"id","in":"path","description":"notification rule Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification rule description","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRuleGetResponses"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Notification"],"summary":"Update notification rule","operationId":"notificationRuleByIdPutRequest","parameters":[{"name":"id","in":"path","description":"notification rule Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRulePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification rule has been updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Notification"],"summary":"Delete notification rule","operationId":"notificationRuleByIdDeleteRequest","parameters":[{"name":"id","in":"path","description":"notification rule Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification rule has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/channel/{id}":{"put":{"tags":["Notification"],"summary":"Update notification channel","operationId":"notificationChannelPutRequest","parameters":[{"name":"id","in":"path","description":"notification channel Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPropertiesPutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification channel has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelPutResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/idp/{idpId}":{"put":{"tags":["Idp"],"summary":"Update identity provider","operationId":"putIdp","parameters":[{"name":"idpId","in":"path","description":"identity provider Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdpPutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Identity provider has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdpGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/encryption/datakey/{databaseId}/changeProviderKey":{"put":{"tags":["Encryption"],"summary":"Re-encrypt stored 'data encryption key'","description":"Encrypt stored data encryption key with new master key. If key management service details and key are not provided, then data key is encrypted by product key","operationId":"encryptionDataKeyChangeProviderPutRequest","parameters":[{"name":"databaseId","in":"path","description":"database connection Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionDataKeyProviderRequest"}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data encryption key has been re-encrypted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/database/salesforce/{databaseId}":{"put":{"tags":["Database"],"summary":"Update database connection details","operationId":"salesforceDatabasePutRequest","parameters":[{"name":"databaseId","in":"path","description":"database connection Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabasePutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Database connection has been updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Database"],"summary":"Delete database connection","description":"Delete information about database connection from application","operationId":"salesforceDatabasesDeleteRequest","parameters":[{"name":"databaseId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Database connection record has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/company/{id}":{"put":{"tags":["Company"],"summary":"Update company","description":"Update company. Company name should be unique","operationId":"companyByIdPutRequest","parameters":[{"name":"id","in":"path","description":"company Id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Company has been updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Company"],"summary":"Delete company","description":"Delete company. Company can be deleted if it does not have associated Salesforce organizations. Otherwise, provide an Id of another company where to move associated organizations before deletion","operationId":"companyByIdDeleteRequest","parameters":[{"name":"id","in":"path","description":"company Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"replace_id","in":"query","description":"Id of replacement company","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Company has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/cloud/provider/aws/{awsCloudProviderId}":{"get":{"tags":["Cloud"],"summary":"Get AWS account details","description":"Get connection record details for AWS account","operationId":"getAwsCloudProvider","parameters":[{"name":"awsCloudProviderId","in":"path","description":"connection record Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Connection record for AWS account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudProviderGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}},"put":{"tags":["Cloud"],"summary":"Update AWS connection record","operationId":"updateAwsCloudProvider","parameters":[{"name":"awsCloudProviderId","in":"path","description":"connection record Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudProviderPutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Connection record is updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudProviderGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}},"delete":{"tags":["Cloud"],"summary":"Delete AWS connection record","description":"Delete AWS connection record. Connection record can be deleted only if none of the keys is used to encrypt data","operationId":"deleteAwsCloudProvider","parameters":[{"name":"awsCloudProviderId","in":"path","description":"connection record Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Connection record has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/backup/job/{jobId}":{"get":{"tags":["Backup"],"summary":"Get backup policy details","description":"Get details of backup policy such as schedule, excluded objects, included file types and retention policy","operationId":"backupJobGetByIdRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobGetByIdResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Backup"],"summary":"Update backup policy","operationId":"backupJobPutRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Backup"],"summary":"Delete backup policy","description":"Delete backup policy. Only backup policy configuration record is deleted; database schema with backed-up data is not deleted","operationId":"backupJobDeleteRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy has been deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/backup/job/{jobId}/name":{"put":{"tags":["Backup"],"summary":"Update backup policy name","operationId":"backupJobNamePutRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobNamePutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy name has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/{jobId}":{"get":{"tags":["Archival"],"summary":"Get data archival policy details","operationId":"archiveJobGetByIdRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Archival policy details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobGetByIdResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Archival"],"summary":"Update data archival policy details","operationId":"archiveJobPutRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobPutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival policy has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobGetByIdResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Archival"],"summary":"Delete data archival policy","operationId":"archiveJobDeleteRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival policy has been deleted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/application/settings":{"get":{"tags":["Settings"],"summary":"Get all application settings","description":"Get system limits and default settings for application components, such as backend, restore or backup","operationId":"applicationSettingsGetRequest","parameters":[{"name":"component","in":"query","description":"application component name","required":false,"schema":{"type":"string"}},{"name":"param_name","in":"query","description":"settings parameter name","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of application settings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationSettingsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"put":{"tags":["Settings"],"summary":"Update parameter value","description":"Update or reset to default value application settings parameter","operationId":"applicationSettingsPutRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationSettingsPutRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Application settings parameters have been updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/auth/token/introspect":{"post":{"tags":["Auth"],"summary":"Get authentication token information","operationId":"introspectAuthToken","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthenticationTokenValueWrapper"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Authentication token information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthenticationToken"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/auth/logout":{"post":{"tags":["Auth"],"summary":"Log out of the application","operationId":"logOut","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Logged out successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"bearerAuth":[]}]}},"/auth/login":{"post":{"tags":["Auth"],"summary":"Log into the application","operationId":"logIn","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"parameters":{"type":"object","additionalProperties":{"type":"string"}}},"required":["parameters"]}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Authentication information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Authentication"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/user":{"get":{"tags":["User"],"operationId":"getApplicationUsers","parameters":[{"name":"role","in":"query","description":"role code","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"size of page","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationUserGetResponse"}}}}}}},"post":{"tags":["User"],"summary":"Register user or group","description":"Provide an access to the application to user or a group authenticated via IDP","operationId":"postApplicationUser","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUserPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"add user","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUserGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/user/current/logout":{"post":{"tags":["User"],"summary":"Logout from the application","operationId":"logoutCurrentApplicationUser","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Logged out successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/schedule":{"get":{"tags":["Schedule"],"operationId":"companySchedulesGetRequest","parameters":[{"name":"company_id","in":"query","description":"company Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"name","in":"query","description":"name","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyScheduleGetResponse"}}}}}}},"post":{"tags":["Schedule"],"summary":"Create custom schedule for company","operationId":"companySchedulesPostRequest","parameters":[{"name":"company_id","in":"query","description":"company Id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySchedulePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Schedule has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanySchedulesPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/retention/{jobId}/start":{"post":{"tags":["Retention"],"summary":"Run backup retention policy","description":"Run backup policy retention for backed up data, file or objects with custom retention schedule","operationId":"selectivelyRunBackendRetentionPoliciesPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectivelyRunBackendRetentionPoliciesPostRequest"}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup retention policy has been started"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/masking":{"get":{"tags":["Masking"],"summary":"Get list of data mask templates","description":"Get list of data mask templates","operationId":"getDataMaskTemplateList","parameters":[{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"company_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"sf_instance_id","in":"query","description":"organization Id","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of data mask templates","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMaskTemplateListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Masking"],"summary":"Create data mask template","description":"Create data mask template","operationId":"createDataMaskTemplate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMaskTemplatePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Created data mask template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataMaskTemplateGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Masking"],"summary":"Delete data mask templates","description":"Delete data mask templates","operationId":"deleteDataMaskTemplates","parameters":[{"name":"templateIds","in":"query","description":"data mask template Ids to delete","required":true,"schema":{"type":"array","items":{"type":"integer","format":"int32"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data mask templates were deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/masking/methods/execute":{"post":{"tags":["Masking"],"operationId":"executeMaskingMethods","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskingMethod"}}}},"required":true},"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskMethodsExecutePostResponseInner"}}}}}}}},"/api/v1/restore/mapping/{organizationId}/record":{"get":{"tags":["Restore"],"summary":"Get record Ids mapping","description":"Get record Ids mapping which is created during restore if new record is created in place of deleted or when restoring to another organization","operationId":"restoreMappingRecordGetRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"object_name","in":"query","description":"object API name","required":false,"schema":{"type":"string"}},{"name":"old_id","in":"query","description":"original record Id","required":false,"schema":{"type":"string"}},{"name":"new_id","in":"query","description":"new record Id","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found record Id mappings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreMappingRecordGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Restore"],"summary":"Modify record Ids mapping","description":"Modify record Id mappings which are used during restore","operationId":"restoreMappingRecordPostRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreMappingRecordPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore mapping has been saved"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/mapping/{organizationId}/field":{"get":{"tags":["Restore"],"summary":"Get fields mapping","description":"Get list of fields that are used as an alternative for the record Id to search a record during restore (alternative keys)","operationId":"restoreMappingFieldGetRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"search","in":"query","description":"object or field API name; search by condition 'contains'","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found field mappings","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreMappingFieldGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Restore"],"summary":"Modify fields mapping","description":"Modify mapping table for fields that are used as an alternative for the record Id to search a record during restore (alternative keys)","operationId":"restoreMappingFieldPostRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreMappingFieldPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Fields mapping has been updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job":{"get":{"tags":["Restore"],"summary":"Get list of restore jobs","description":"Get list of restore jobs. Result is filtered to show only jobs available to a user based on assigned role","operationId":"restoreJobGetRequest","parameters":[{"name":"company_id","in":"query","description":"company Id","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","description":"restore job status","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/RestoreJobStatus"}}},{"name":"restore_type","in":"query","description":"restore job type","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/RestoreJobType"}}},{"name":"sf_instance_id","in":"query","description":"organization Id","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"name","in":"query","description":"name","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found restore jobs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Restore"],"summary":"Create draft restore job","description":"Create draft restore job for a company. Restore job parameters should then be configured step by step","operationId":"restoreJobPostRequest","parameters":[{"name":"company_id","in":"query","description":"company Id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Draft restore job has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/stop":{"post":{"tags":["Restore"],"summary":"Stop restore job","operationId":"restoreJobStopPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job has been stopped","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/target":{"get":{"tags":["RestoreStep"],"summary":"Get source and target org details","description":"Get source and target org details of restore job","operationId":"restoreJobTargetGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Details of the restore job step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobTargetGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["RestoreStep"],"summary":"Set source and target org","description":"Set source database and target organization for draft restore job. Step is required for all types of restore jobs","operationId":"restoreJobTargetPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobTargetPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job step has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/options":{"get":{"tags":["RestoreStep"],"summary":"Get general settings of a restore job","operationId":"restoreJobOptionsGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Details of the restore job step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobOptionsDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["RestoreStep"],"summary":"Customize general settings of a restore job","description":"Customize rules to restore root records, and turn off automation on target org. Step is applicable for 'RECORDS' and 'FIELDS' restore job type","operationId":"restoreJobOptionsPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobOptionsDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job step has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/hierarchy":{"get":{"tags":["RestoreStep"],"summary":"Get hierarchy restore settings","description":"Get settings to restore related child and parent records","operationId":"restoreJobHierarchyGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Details of the restore job step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobHierarchyDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["RestoreStep"],"summary":"Specify hierarchy restore settings","description":"Specify settings to restore related child and parent records. Step is applicable only for 'RECORDS' restore job type","operationId":"restoreJobHierarchyPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobHierarchyDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job step has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/files":{"get":{"tags":["RestoreStep"],"summary":"Get settings for related files restore","description":"Get settings to restore files and attachments of root records","operationId":"restoreJobFilesGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Details of the restore job step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobFilesDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["RestoreStep"],"summary":"Specify file restore settings","description":"Update file restore settings for the root records; specify criteria to exclude files from restore. Step is applicable only for 'RECORDS' restore job type ","operationId":"restoreJobFilesPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobFilesDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job step has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/fields":{"get":{"tags":["RestoreStep"],"summary":"Get set of fields to be restored","description":"Get set of fields which value to be restored for existing records","operationId":"restoreJobFieldsGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Details of the restore job step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobFieldsDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["RestoreStep"],"summary":"Specify set of fields to be restored","description":"Specify set of fields which value to be restored for existing records. Step is applicable only for 'FIELDS' restore job type","operationId":"restoreJobFieldsPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobFieldsDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job step has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/data":{"get":{"tags":["RestoreStep"],"summary":"Get list of records for restore","description":"Get list or filtering criteria to select root records for restore job","operationId":"restoreJobDataGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Details of the restore job step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobDataDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["RestoreStep"],"summary":"Specify root records for restore","description":"Specify root records for restore or configure filtering criteria to search records during restore job execution. Step is required for all types of restore jobs ","operationId":"restoreJobDataPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobDataDto"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job step has been updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/start":{"post":{"tags":["Restore"],"summary":"Start restore job","operationId":"restoreJobStartPostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job has been started","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/object/files/latest":{"post":{"tags":["Restore"],"summary":"Search for files associated with root records","description":"Search for Attachment and ContentVersion files associated with root records selected for restore; found files can be as well included in restore job ","operationId":"restoreJobObjectFilesLatestPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found attachment records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/clone":{"post":{"tags":["Restore"],"summary":"Clone existing restore job","operationId":"restoreJobClonePostRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobClonePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Restore job has been cloned","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/proxy/test":{"post":{"tags":["Proxy"],"summary":"Verify proxy connection configuration","description":"Verify that required resources are accessible via configured proxy connection","operationId":"testProxyConfigurationPostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyConfigurationRequestResponse"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Proxy connection verification is successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestProxyConfigurationPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization":{"get":{"tags":["Organization"],"summary":"Get list of Salesforce organizations","description":"Get list of Salesforce organizations and organization details. Result is filtered  to show only organizations available to a user based on assigned role ","operationId":"organizationListGetRequest","parameters":[{"name":"company_id","in":"query","description":"company Id","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found organizations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationListGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Organization"],"summary":"Register new organization","description":"Register Salesforce organization in a product. Requires prior execution  of authorization method to get 'code' and 'state' markers for authorized user ","operationId":"organizationPostRequest","parameters":[{"name":"code","in":"query","description":"Salesforce oauth authorization code","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","description":"application state marker","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Salesforce organization has been registered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["Organization"],"summary":"Move organizations to another company","description":"Move organizations to another company. Company cannot have two organizations with the same name","operationId":"organizationPatchRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationPatchRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Organizations have been moved"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/{sfInstanceId}/draft":{"post":{"tags":["Organization"],"summary":"Create draft from existing organization for editing","description":"Create a draft organization from an existing organization to allow editing its Salesforce connection settings (client ID, client secret, login type). The draft will contain the current organization's settings and state. ","operationId":"organizationEditDraftPostRequest","parameters":[{"name":"sfInstanceId","in":"path","description":"internal ID of the existing organization to create a draft from","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationEditDraftPostRequest"}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Draft organization created from existing organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDraftPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/{organizationId}/reauthorization":{"post":{"tags":["Organization"],"summary":"Generate URL to reauthorize in Salesforce","description":"Generate URL for reauthorization in production, sandbox or custom Salesforce organization.  Created link includes an application 'state' marker ","operationId":"organizationReauthorizationUrlPostRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"URL for reauthorization in Salesforce","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationReauthorizationPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/reauthorization":{"post":{"tags":["Organization"],"summary":"Reauthorize existing organization","operationId":"organizationReauthorizationPostRequest","parameters":[{"name":"code","in":"query","description":"Salesforce oauth authorization code","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","description":"application state marker","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Salesforce organization has been reauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/draft":{"post":{"tags":["Organization"],"summary":"Create draft organization","description":"Create a draft organization and return an authorization link to authorize user for organization. This endpoint is used to prepare organization before actual registration. ","operationId":"organizationDraftPostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDraftPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Draft organization created with authorization URL","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDraftPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/draft/{draftUuid}/reauthorize":{"post":{"tags":["Organization"],"summary":"Reauthorize draft organization","description":"Generate a new authorization URL for a draft organization that needs reauthorization. This endpoint updates the draft organization with new IDP configuration and returns a new authorization URL. All fields in the request body are optional - any missing fields will be taken from the existing draft. ","operationId":"organizationDraftReauthorizePostRequest","parameters":[{"name":"draftUuid","in":"path","description":"Draft UUID representing the draft organization","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDraftReauthorizePostRequest"}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"New authorization URL for draft organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDraftPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/draft/{draftUuid}/connect":{"post":{"tags":["Organization"],"summary":"Connect draft organization with SF organization by exchanging authorization code on token pair","description":"Connect the draft organization to real SF org using the authorization code received from Salesforce after user authorization and exchanging int on access and refresh tokens. ","operationId":"organizationDraftConnectPostRequest","parameters":[{"name":"draftUuid","in":"path","description":"Draft UUID representing the draft organization","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"code","in":"query","description":"Salesforce oauth authorization code","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","description":"application state marker","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Draft organization connected successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/draft/{draftUuid}/complete":{"post":{"tags":["Organization"],"summary":"Complete draft organization and create final organization","description":"Finalize the draft organization and create the actual Salesforce organization in the system. This endpoint should be called after successfully connecting the draft organization with authorization code. ","operationId":"organizationDraftCompletePostRequest","parameters":[{"name":"draftUuid","in":"path","description":"Draft UUID representing the draft organization","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Draft organization completed and final organization created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/draft/{draftUuid}/company":{"post":{"tags":["Organization"],"summary":"Link draft organization to a company","description":"Associate a draft organization with an existing company by company external ID. This must be done before completing the draft organization. ","operationId":"organizationDraftCompanyPostRequest","parameters":[{"name":"draftUuid","in":"path","description":"Draft UUID representing the draft organization","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDraftCompanyPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Draft organization linked to company successfully"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/authorization":{"post":{"tags":["Organization"],"summary":"Generate URL to authorize in Salesforce","description":"Generate URL for authorization in production, sandbox or custom Salesforce organization.  Created link includes an application 'state' marker ","operationId":"organizationAuthorizationUrlPostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationAuthorizationPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"URL for authorization in Salesforce","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationAuthorizationPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object/{objectName}":{"post":{"tags":["Object"],"summary":"Search records by specified criteria","description":"Search records among last backed-up and historical versions of a record.  If multiple versions are found for the record, latest record version is returned ","operationId":"objectPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"objectName","in":"path","description":"object API name","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"only_history","in":"query","description":"set 'true' to search among historical versions","required":false,"schema":{"type":"boolean"}},{"name":"count_rows","in":"query","description":"should count rows query be performed","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectLatestPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object/{objectName}/{objectId}/hierarchy":{"post":{"tags":["Hierarchy"],"summary":"Get hierarchy tree for the record","description":"Build hierarchy tree for the record up or down to specified level. Hierarchy is built based on backed-up data for specified restore point","operationId":"objectHierarchyPostRequest","parameters":[{"name":"objectName","in":"path","description":"root object API name","required":true,"schema":{"type":"string"}},{"name":"objectId","in":"path","description":"root record Id","required":true,"schema":{"type":"string"}},{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"vsf_restore_point","in":"query","description":"specify to built hierarchy for particular record version","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"latest","in":"query","description":"set 'true' to build hierarchy for the latest record version","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HierarchyTreePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Record hierarchy tree","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HierarchyTreeDto"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object/{objectName}/{objectId}/hierarchyData":{"post":{"tags":["Hierarchy"],"summary":"Get list of records for hierarchy node","description":"Get list of records for specified hierarchy node. Hierarchy is built based on backed-up data for specified restore point","operationId":"objectHierarchyDataPostRequest","parameters":[{"name":"objectName","in":"path","description":"object API name","required":true,"schema":{"type":"string"}},{"name":"objectId","in":"path","description":"record Id","required":true,"schema":{"type":"string"}},{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"vsf_restore_point","in":"query","description":"specify to built hierarchy for particular record version","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"latest","in":"query","description":"set 'true' to build hierarchy for the latest record version","required":false,"schema":{"type":"boolean"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HierarchyTreeDataPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of records found for specified hierarchy node","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HierarchyDataPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object/{objectName}/version":{"post":{"tags":["Object"],"summary":"Search record versions by specified criteria","description":"Search record among all backed-up versions. Response may contain multiple versions of the same record","operationId":"objectHistoryPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"objectName","in":"path","description":"object API name","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/user":{"get":{"tags":["Notification"],"operationId":"notificationUserByIdGetRequest","responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationUserByIdGetResponses"}}}}}}},"post":{"tags":["Notification"],"summary":"Mark notification message as viewed","operationId":"notificationUserByIdPostRequest","parameters":[{"name":"all_duplicates","in":"query","description":"dismiss all similar notifications","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"integer","format":"int32"}}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Notification messages have been marked as viewed"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/rule":{"get":{"tags":["Notification"],"summary":"Get list of notification rules","operationId":"notificationRuleGetRequest","parameters":[{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"channel_type","in":"query","description":"notification channel type","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationChannelType"}}},{"name":"state","in":"query","description":"notification rule state","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRuleState"}}},{"name":"status","in":"query","description":"event or job status which triggers notification","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRuleStatus"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found system notification rules","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRuleAllGetResponses"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Notification"],"summary":"Create notification rule","operationId":"notificationRulePostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationRulePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification rule has been created"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/channel":{"get":{"tags":["Notification"],"operationId":"notificationChannelGetRequest","responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/NotificationChannelGetResponse"}}}}}}},"post":{"tags":["Notification"],"summary":"Add notification channel","operationId":"notificationChannelPostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPropertiesPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification channel has been saved"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/channel/test/message":{"post":{"tags":["Notification"],"summary":"Send test message","description":"Send a test message to verify notification channel","operationId":"notificationChannelTestMessagePostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationChannelTestMessagePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Test message has been sent to notification channel"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/metadata":{"post":{"tags":["Metadata"],"summary":"Search metadata item by specified criteria","operationId":"objectMetadataPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found metadata items","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectMetadataPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/metadata/{metadataId}/commit/compare":{"post":{"tags":["Metadata"],"operationId":"objectMetadataHistoryPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"metadataId","in":"path","description":"metadata object Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectMetadataHistoryPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectMetadataHistoryPostResponseInner"}}}}}}}},"/api/v1/metadata/file/download":{"post":{"tags":["Metadata"],"summary":"Download metadata item in a zip archive","operationId":"objectMetadataFilePostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectMetadataFilePostRequest"}}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/license":{"get":{"tags":["License"],"summary":"Get application license details","operationId":"licenseGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"License has been found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["License"],"summary":"Install new license","operationId":"licensePostRequest","requestBody":{"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"license":{"type":"string","format":"binary","description":"license file"}},"required":["license"]}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"License has been saved"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["License"],"summary":"Remove license","description":"Remove license; existing license is replaced with built-in Community Edition license","operationId":"licenseDeleteRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"License has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/init/finish":{"post":{"tags":["System"],"summary":"Finish application initialization","description":"Finish application initialization; to be performed once all initial configuration steps are done","operationId":"initStatusFinishPostRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Application initialization has been completed"},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/idp":{"get":{"tags":["Idp"],"operationId":"getIdp","parameters":[{"name":"sf_type","in":"query","description":"Filter IDPs by Salesforce type (ca, eca, or all)","required":false,"schema":{"type":"string","default":"all"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IdpGetResponse"}}}}}}},"post":{"tags":["Idp"],"summary":"Register an identity provider","operationId":"postIdp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdpPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Identity provider has been registered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdpGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/idp/verification/start":{"post":{"tags":["Idp"],"summary":"Verify IDP connection","description":"Verify IDP connection before saving changes. Created authorization link includes an application 'state' marker","operationId":"startVerificationIdp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdpStartVerificationPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Redirect URL for authorization via specified IDP","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrlResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/idp/verification/continue":{"post":{"tags":["Idp"],"summary":"Continue with verified IDP connection","description":"Return to the point where IDP verification was called. Requires prior execution of IDP verification method to get 'code' and 'state' markers","operationId":"continueVerificationIdp","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdpContinueVerificationPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Ok"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/idp/oauth/{idpId}/user/search":{"post":{"tags":["Idp"],"operationId":"searchIdpUsersByIdpId","parameters":[{"name":"idpId","in":"path","description":"identity provider Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchIdpUsersByIdpIdPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IdpUserFromSearch"}}}}}}}},"/api/v1/idp/oauth/user/search":{"post":{"tags":["Idp"],"operationId":"searchIdpUsers","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchIdpUsersPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IdpUserFromSearch"}}}}}}}},"/api/v1/file/{fileObjectName}":{"post":{"tags":["File"],"summary":"Search file records by specified criteria","description":"Search file records, for example records describing Attachment, ContentVerion or Document ","operationId":"fileTypePostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"fileObjectName","in":"path","description":"file object API name","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found file object records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/{fileObjectName}/{parentObjectName}":{"post":{"tags":["File"],"summary":"Search file recods for a parent object","description":"Search file records for specific parent object, for example records describing 'Attachment' of an Account. ","operationId":"fileTypeForParentPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"parentObjectName","in":"path","description":"parent object API name","required":true,"schema":{"type":"string"}},{"name":"fileObjectName","in":"path","description":"file object API name","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found file object records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/download":{"post":{"tags":["File"],"summary":"Download file in a zip archive","description":"Download zip archive with requested files; different file types can be specified in one request ","operationId":"filesDownloadPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"withType","in":"query","description":"include file extension","required":false,"schema":{"type":"boolean"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesDownloadPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/contentVersion/{contentVersionId}":{"post":{"tags":["File"],"summary":"Get all versions of ContentDocument","description":"Get all versions of ContentDocument, providing Id of one of the already backed-up  ContentVersions. Method returns all ContentVersion records that are available in backup  and latest ContentVersion from target organization. To search for ContentVersions of  document restored to another organization, specify target organization field ","operationId":"fileContentVersionHistoryRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"contentVersionId","in":"path","description":"ContentVersion record Id","required":true,"schema":{"type":"string"}},{"name":"target_sf_instance_id","in":"query","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["versionnumber"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of ContentVersion records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileContentVersionHistoryResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/encryption/datakey/{databaseId}":{"post":{"tags":["Encryption"],"summary":"Create encryption data key setup","operationId":"encryptionDataKeyPostRequest","parameters":[{"name":"databaseId","in":"path","description":"database connection Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionDataKeyProviderRequest"}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Encryption keys setup is created for organization"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Encryption"],"summary":"Delete encryption key","description":"Delete data encryption key for organization. Operation is possible only if all data is decrypted","operationId":"encryptionDataKeyDeleteRequest","parameters":[{"name":"databaseId","in":"path","description":"database connection Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Encryption key has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/encryption/datakey/{databaseId}/upload":{"post":{"tags":["Encryption"],"summary":"Upload data encryption key","description":"Upload unencrypted key; zip file is expected. By default data key will be encrypted by product key. You also can encrypt data key with a key stored in key management service by providing necessary connection details","operationId":"encryptionDataKeyUploadPostRequest","parameters":[{"name":"databaseId","in":"path","description":"database connection Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"provider_id","in":"query","description":"key management service connection Id","required":false,"schema":{"type":"integer","format":"int32"}},{"name":"provider_key_id","in":"query","description":"key Id in a key management service","required":false,"schema":{"type":"string"}},{"name":"region","in":"query","description":"region name in key management service","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/octet-stream":{"schema":{"type":"object","properties":{"body":{"type":"string","format":"binary"}}}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data encryption key has been uploaded"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/database/salesforce":{"get":{"tags":["Database"],"summary":"Get list of database connections","description":"Get list of database connections for specified search criteria. When searching by  organization Id, response also includes 'empty' databases not yet linked with any organization ","operationId":"salesforceDatabasesGetRequest","parameters":[{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"db_name","in":"query","description":"database name; search by 'contains'","required":false,"schema":{"type":"string"}},{"name":"company_id","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"sf_instance_id","in":"query","description":"organisation Id","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of database connections","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabasesGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Database"],"summary":"Create database","operationId":"salesforceDatabasePostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabasePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Database has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabasePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/database/salesforce/{databaseId}/clone":{"post":{"tags":["Database"],"summary":"Clone database connection","description":"Create database using credential of existing database connection","operationId":"salesforceDatabaseClonePostRequest","parameters":[{"name":"databaseId","in":"path","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabaseClonePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Database has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabasePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/database/salesforce/default":{"post":{"tags":["Database"],"summary":"Create default database","operationId":"salesforceDatabaseDefaultPostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabaseDefaultPostRequest"}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Database has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceDatabasePostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/database/application":{"get":{"tags":["Database"],"summary":"Get configuration database details","description":"Get configuration database connection details, and summary information","operationId":"applicationDatabaseGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Configuration database details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationDatabaseGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Database"],"summary":"Set configuration database for application","operationId":"applicationDatabasePostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationDatabasePostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Configuration database initialized"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["Database"],"summary":"Edit configuration database credentials","operationId":"applicationDatabasePatchRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationDatabasePatchRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Configuration database credentials updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/database/application/default":{"post":{"tags":["Database"],"summary":"Set configuration database for application from default configuration","operationId":"applicationDatabaseDefaultPostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationDatabaseDefaultPostRequest"}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Configuration database initialized"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/company":{"get":{"tags":["Company"],"summary":"Get list of companies","description":"Get a list of companies and company details. Result is filtered to show only companies available to a user based on assigned role","operationId":"companyGetRequest","parameters":[{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found companies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Company"],"summary":"Create company","description":"Create new company. Unique company name should be provided","operationId":"companyPostRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Company has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/cloud/provider/aws":{"get":{"tags":["Cloud"],"operationId":"getAwsCloudProviderList","parameters":[{"name":"company_id","in":"query","description":"company Id","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AwsCloudProviderGetResponse"}}}}}}},"post":{"tags":["Cloud"],"summary":"Connect to AWS account","description":"Create connection record for AWS account. Connection is configured per company","operationId":"createAwsCloudProvider","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudProviderPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"AWS account is connected","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudProviderGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/cloud/provider/aws/{awsCloudProviderId}/key":{"get":{"tags":["Cloud"],"operationId":"getAwsCloudProviderKeyList","parameters":[{"name":"awsCloudProviderId","in":"path","description":"connection record Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"region","in":"query","description":"AWS region code","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AwsCloudProviderKey"}}}}}}},"post":{"tags":["Cloud"],"summary":"Create encryption key in AWS","operationId":"createAwsCloudProviderKey","parameters":[{"name":"awsCloudProviderId","in":"path","description":"connection record Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudProviderKeyPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"AWS encryption key has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribedAwsCloudProviderKey"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/cloud/provider/aws/{awsCloudProviderId}/key/describe":{"post":{"tags":["Cloud"],"summary":"Get detailed information about AWS key","description":"Get details about the key from AWS. Such information as key state, expiration date and usage","operationId":"describeAwsCloudProviderKey","parameters":[{"name":"awsCloudProviderId","in":"path","description":"connection record Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeAwsCloudProviderKeyPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Detailed information about AWS key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribedAwsCloudProviderKey"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/cloud/provider/aws/{awsCloudProviderId}/key/alias":{"post":{"tags":["Cloud"],"summary":"Create alias for AWS encryption key","operationId":"createAwsCloudProviderKeyAlias","parameters":[{"name":"awsCloudProviderId","in":"path","description":"connection record Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudProviderKeyAliasPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Alias for AWS encryption key has been created"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/cloud/provider/aws/verify":{"post":{"tags":["Cloud"],"summary":"Verify connection to AWS account","description":"Verify connection to AWS account by access key","operationId":"verifyAwsCloudProvider","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyAwsCloudProviderPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Connection to AWS account is valid"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/backup/job":{"get":{"tags":["Backup"],"summary":"Get backup policies","description":"Get list of backup policies. Result is filtered to return only backup policies for companies and organizations available to a user based on assigned role","operationId":"backupJobGetRequest","parameters":[{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"name","in":"query","description":"name","required":false,"schema":{"type":"string"}},{"name":"company_id","in":"query","description":"company Id","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","description":"backup policy status","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobStatus"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found backup policies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Backup"],"summary":"Create backup policy","description":"Create backup policy for registered organization. All objects are included in backup policy by default. To backup files, explicitly specify correponding file objects","operationId":"backupJobPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/backup/job/{jobId}/stop":{"post":{"tags":["Backup"],"summary":"Stop backup policy","operationId":"backupJobStopPostRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"soft","in":"query","description":"set 'true' to terminate session after current step is completed; else execution is terminated immediately","required":false,"schema":{"type":"boolean"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy has been stopped","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/backup/job/{jobId}/start":{"post":{"tags":["Backup"],"summary":"Start backup policy","description":"Start backup policy execution. Following backup policy job types are started - data, metadata and files","operationId":"backupJobStartPostRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"child_job_id","in":"query","description":"Id of the child backup job related to the main job","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy has been started","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/backup/job/{jobId}/reload":{"post":{"tags":["Backup"],"operationId":"backupJobReloadFieldsPostRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobReloadFieldsPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}}}}},"/api/v1/backup/job/{jobId}/reload/metadata":{"post":{"tags":["Backup"],"operationId":"backupJobReloadMetadataPostRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}}}}},"/api/v1/backup/job/{jobId}/enable":{"post":{"tags":["Backup"],"summary":"Enable backup policy","description":"Enable execution of backup policy jobs on schedule","operationId":"backupJobEnablePostRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy has been enabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/backup/job/{jobId}/disable":{"post":{"tags":["Backup"],"summary":"Disable backup policy","description":"Disable scheduled execution of backup policy jobs","operationId":"backupJobDisablePostRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy has been disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/backup/job/run/{runId}/stop":{"post":{"tags":["Backup"],"summary":"Stop backup job run","operationId":"backupJobStopRunPostRequest","parameters":[{"name":"runId","in":"path","description":"backup job run Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"soft","in":"query","description":"set 'true' to terminate session after current step is completed; else execution is terminated immediately","required":false,"schema":{"type":"boolean"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup job run has been stopped","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job":{"get":{"tags":["Archival"],"summary":"Get data archival policies","description":"Get list of data archival policies for organization","operationId":"archiveJobGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"status","in":"query","description":"archival policy log status","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveJobStatus"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found data archival policies","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"post":{"tags":["Archival"],"summary":"Create data archival policy","description":"Create data archival policy for a root object (1 policy per object)","operationId":"archiveJobPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival policy has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/archive/job/{jobId}/stop":{"post":{"tags":["Archival"],"summary":"Stop data archival policy","operationId":"archiveJobStopPostRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"soft","in":"query","description":"set 'true' to terminate session after current step is completed; else execution is terminated immediately","required":false,"schema":{"type":"boolean","default":true}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival policy has been stopped","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/{jobId}/start":{"post":{"tags":["Archival"],"summary":"Start data archival policy","operationId":"archiveJobStartPostRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival policy has been started","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/{jobId}/enable":{"post":{"tags":["Archival"],"summary":"Enable data archival policy","operationId":"archiveJobEnablePostRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival policy has been enabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/{jobId}/disable":{"post":{"tags":["Archival"],"summary":"Disable data archival policy","operationId":"archiveJobDisablePostRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival policy has been disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDefaultResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/count":{"post":{"tags":["Archival"],"summary":"Calculate number of archived records","description":"Calculate number of to be archived root records","operationId":"archiveJobObjectsCountPostRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobObjectsCountPostRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Calculation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobObjectsCountPostResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/admin/password":{"post":{"tags":["Admin"],"summary":"Set password for admin","operationId":"setAdminPassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPassword"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Admin password is set"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}},"patch":{"tags":["Admin"],"summary":"Reset admin password","operationId":"resetAdminPassword","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminPassword"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Admin password is set"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/proxy":{"get":{"tags":["Proxy"],"summary":"Get proxy connection configuration","operationId":"proxyConfigurationGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Current proxy configuration","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyConfigurationRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Proxy"],"summary":"Delete proxy setting rule","operationId":"proxyConfigurationDeleteRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"204":{"description":"Proxy rule has been set to empty"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["Proxy"],"summary":"Update proxy connection configuration","operationId":"updateProxyConfigurationPutRequest","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyConfigurationRequestResponse"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Proxy configuration updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxyConfigurationRequestResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/{organizationId}":{"get":{"tags":["Organization"],"summary":"Get organization details","operationId":"organizationGetRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Organization details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Organization"],"summary":"Delete organization","description":"Delete organization. Deletion is rejected (400) if the organization has a backup policy, has running restore jobs, or is used for single sign-on.","operationId":"organizationSalesforceDeleteRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"remove_jobs_and_mappings","in":"query","description":"set 'true' to delete restore jobs and object Ids mappings","required":false,"schema":{"type":"boolean"}},{"name":"remove_company","in":"query","description":"set 'true' to delete company when deleting last organization","required":false,"schema":{"type":"boolean"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Organization has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"patch":{"tags":["Organization"],"summary":"Update organization name","description":"Update Salesforce alias (name) for organization.  Organization alias should be unique within one company ","operationId":"organizationByIdPatchRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationByIdPatchRequest"}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Organization has been updated"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/rule/enable":{"patch":{"tags":["Notification"],"summary":"Enable requested notification rules","operationId":"notificationRuleEnablePatchRequest","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"integer","format":"int32"}}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Notification rules have been enabled"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/rule/disable":{"patch":{"tags":["Notification"],"summary":"Disable requested notification rules","operationId":"notificationRuleDisablePatchRequest","requestBody":{"content":{"application/json":{"schema":{"type":"array","items":{"type":"integer","format":"int32"}}}},"required":true},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Notification rules have been disabled"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/skipped/reset":{"patch":{"tags":["File"],"summary":"Reset download failures counter for file type","description":"Reset download failures counter for specified file types. After reset  application includes corresponding files in the next file backup session ","operationId":"resetFailuresCountPatchRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"objects","in":"query","description":"file object API name","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Download failures counter has been reset"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/application/settings/reset":{"patch":{"tags":["Settings"],"summary":"Reset application settings to default values","description":"Reset to default value all settings for specified application component; such as backend, restore or backup","operationId":"applicationSettingsPatchRequest","parameters":[{"name":"component","in":"query","description":"application component name","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Application settings have been reset"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v2/idp/oauth/{idpId}/authorization-code":{"get":{"tags":["Idp"],"summary":"Get authorization URL for specified IDP","description":"Get authorization URL for the IDP specified by its Id. Created link includes an application 'state' marker","operationId":"getIdpAuthorizationCodeRequestUrlByIdpId","parameters":[{"name":"idpId","in":"path","description":"identity provider Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Redirect URL for authorization via specified IDP","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrlResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/version":{"get":{"tags":["System"],"summary":"Get application version","operationId":"versionGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Version information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionGetResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/user/current":{"get":{"tags":["User"],"summary":"Get current user details","operationId":"getCurrentApplicationUser","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"User details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUserGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/updater/token":{"get":{"tags":["Updater"],"summary":"get updater path and token","operationId":"updaterGetTokenRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Updater token has been obtained","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdaterGetTokenResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/support/log/system":{"get":{"tags":["Support"],"summary":"System logs download","operationId":"supportCreateSystemLogsLinkGetRequest","parameters":[{"name":"date_from","in":"query","required":true,"schema":{"type":"string","pattern":"^(\\d{2}-\\d{2}-\\d{4}|\\d{4}-\\d{2}-\\d{2})$"}},{"name":"date_to","in":"query","required":true,"schema":{"type":"string","pattern":"^(\\d{2}-\\d{2}-\\d{4}|\\d{4}-\\d{2}-\\d{2})$"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/support/log/job/restore/{jobId}":{"get":{"tags":["Support"],"summary":"Restore job logs download","operationId":"supportCreateRestoreJobLogsLinkGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/support/log/job/backup/{jobId}":{"get":{"tags":["Support"],"summary":"Backup session logs download","operationId":"supportCreateBackupJobLogsLinkGetRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"log_id","in":"query","description":"backup session Id","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/support/log/job/archive/{jobId}":{"get":{"tags":["Support"],"summary":"Archival session logs download","operationId":"supportCreateArchiveJobLogsLinkGetRequest","parameters":[{"name":"jobId","in":"path","description":"archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"log_id","in":"query","description":"archival session Id","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/status":{"get":{"tags":["System"],"summary":"Get application status","operationId":"statusGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Application status information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusGetResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/schedule/timezone":{"get":{"tags":["Schedule"],"operationId":"companyScheduleTimezoneGetRequest","parameters":[{"name":"locale","in":"query","description":"interface language (en, ja)","required":false,"schema":{"type":"string","default":"en"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CompanyScheduleTimezonesGetResponse"}}}}}}}},"/api/v1/role":{"get":{"tags":["User"],"operationId":"getRole","responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationRoleV2"}}}}}}}},"/api/v1/restore/masking/methods":{"get":{"tags":["Masking"],"operationId":"getDataMaskMethodsList","responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskMethodInformation"}}}}}}}},"/api/v1/restore/mapping/{organizationId}/export":{"get":{"tags":["Restore"],"summary":"Export record Ids mapping","description":"Export record Ids mapping used on an Org during restore as a CSV file","operationId":"exportRestoreMappingRecordGetRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step":{"get":{"tags":["RestoreStep"],"summary":"Get configuration details of the restore job","description":"Get configuration details for all steps of the restore job","operationId":"restoreJobStatesGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Configuration details of the restore job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobStatesGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/verification/permissions":{"get":{"tags":["RestoreStep"],"summary":"Verify permissions required for restore","description":"Check that Salesforce user used to execute restore job has required permissions","operationId":"restoreJobStepVerificationGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Validation results for restore job","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobValidationGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/step/data/csv":{"get":{"tags":["RestoreStep"],"summary":"Download file with restore job result","description":"Download zip archive with results of restore job execution prepared by specified batch job Id","operationId":"restoreJobStepVerificationCsvGetRequest","parameters":[{"name":"jobId","in":"path","description":"batch job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/log":{"get":{"tags":["Restore"],"summary":"Get restore job execution summary","operationId":"restoreJobSummaryLogGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"The restore job summary log","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobSummaryLogGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/log/metadata":{"get":{"tags":["Restore"],"summary":"Get metadata restore job execution summary","operationId":"restoreJobMetadataSummaryLogGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"The restore job summary log","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobMetadataSummaryLogGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/log/detail":{"get":{"tags":["Restore"],"summary":"Get restore job execution details","description":"Get restore job execution details for each processed object and performed step, such as disabling an automation","operationId":"restoreJobDetailLogGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/RestoreJobLogStatus"}}},{"name":"object_name","in":"query","description":"object API name","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["object_name"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Detailed log for each requested restore step","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RestoreJobDetailLogShortGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/restore/job/{jobId}/export":{"get":{"tags":["Restore"],"summary":"Export restore job result","operationId":"restoreJobExportGetRequest","parameters":[{"name":"jobId","in":"path","description":"restore job Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"status","in":"query","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/RestoreJobLogStatus"}}},{"name":"object_name","in":"query","description":"object API name","required":false,"schema":{"type":"string"}},{"name":"message","in":"query","description":"restore log message","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/resources":{"get":{"tags":["System"],"summary":"Get server resources information","operationId":"resourcesGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Server resources information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourcesGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/{organizationId}/verify/{permission}":{"get":{"tags":["Organization"],"summary":"Verify user permissions","description":"Verify permissions of a user used to connect an Org","operationId":"salesforcePermissionsGetRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"permission","in":"path","description":"target access level","required":true,"schema":{"type":"string"}},{"name":"objects","in":"query","description":"list of objects to verify access","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Permissions verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/{organizationId}/custom-relationships":{"get":{"tags":["Organization"],"summary":"Get organization's custom relationships","operationId":"getOrganizationCustomRelationships","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Organization custom relationships","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCustomRelationshipResponseList"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/{organizationId}/custom-relationships/export":{"get":{"tags":["Organization"],"summary":"Export organization's custom relationships to archive","operationId":"exportOrganizationCustomRelationships","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/salesforce/limit":{"get":{"tags":["Organization"],"summary":"Get storage limits for organization","description":"Get storage resources limits, and current data and file storage usage for organization","operationId":"organizationSalesforceLimitGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Organization storage resources information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSalesforceLimitGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/draft/{draftUuid}":{"get":{"tags":["Organization"],"summary":"Get draft organization details","description":"Get the details of a draft organization by its UUID. This endpoint returns draft organization information including current configuration. Missing parts will contain null values. ","operationId":"organizationDraftGetRequest","parameters":[{"name":"draftUuid","in":"path","description":"Draft UUID representing the draft organization","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"Draft organization details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDraftGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]},"delete":{"tags":["Organization"],"summary":"Delete draft organization","description":"Delete a draft organization by its UUID. This endpoint removes the draft organization from the system. Use this to cancel an in-progress organization registration. ","operationId":"organizationDraftDeleteRequest","parameters":[{"name":"draftUuid","in":"path","description":"Draft UUID representing the draft organization","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"Draft organization has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/draft/{draftUuid}/verify/{permission}":{"get":{"tags":["Organization"],"summary":"Verify user permissions for draft organization","description":"Verify permissions of a user used to connect a draft organization. This endpoint behaves similarly to the regular organization verify endpoint. ","operationId":"organizationDraftVerifyPermissionsGetRequest","parameters":[{"name":"draftUuid","in":"path","description":"Draft UUID representing the draft organization","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"permission","in":"path","description":"target access level","required":true,"schema":{"type":"string"}},{"name":"objects","in":"query","description":"list of objects to verify access","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Permissions verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/compatible/{organizationId}":{"get":{"tags":["Organization"],"summary":"Get list of compatible organizations","description":"Get list of production and sandbox organizations that were created from the same  source organization. Result is filtered to show only organizations available  to a user based on assigned role ","operationId":"compatibleOrganizationsSalesforceGetRequest","parameters":[{"name":"organizationId","in":"path","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found organizations","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompatibleOrganizationListGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/organization/application/status":{"get":{"tags":["Organization"],"summary":"Get status of connection to Salesforce","description":"Check Salesforce 'Connected App' status and authorization status for registered organizations","operationId":"organizationApplicationStatusGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Connection status information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationApplicationStatusGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object":{"get":{"tags":["Object"],"summary":"Get objects available for restore","description":"Get list of standard and custom objects that are available for restore.  Specified organization should have at least one backup ","operationId":"objectGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"value","in":"query","description":"object API name; search by condition 'contains'","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of objects available for restore","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object/{objectName}/field":{"get":{"tags":["Object"],"operationId":"objectFieldsByNameGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"objectName","in":"path","description":"object API name","required":true,"schema":{"type":"string"}},{"name":"restorable_only","in":"query","description":"set 'true' to receive only fields available for restore","required":false,"schema":{"type":"boolean"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectFieldsByNameGetResponseInner"}}}}}}}},"/api/v1/object/salesforce":{"get":{"tags":["Object"],"summary":"Get objects available for backup","description":"Get from Salesforce list of standard and custom objects that are available  for backup; objects, that are considered to be \"files\" are not included in the response ","operationId":"salesforceObjectsGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of objects available for backup","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupObjectsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object/salesforce/{objectName}/{recordId}":{"get":{"tags":["Object"],"summary":"Get record details from Salesforce","description":"Get current field values in Salesforce for specified record Id","operationId":"salesforceObjectGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"objectName","in":"path","description":"object API name","required":true,"schema":{"type":"string"}},{"name":"recordId","in":"path","description":"salesforce record Id","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Requested record details","content":{"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/object/salesforce/{objectName}/field":{"get":{"tags":["Object"],"summary":"Get fields for specified object","description":"Get list of fields for specified object, including information such as API name,  wether field is required and available for encryption ","operationId":"salesforceObjectFieldsGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"objectName","in":"path","description":"object API name","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of object fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SalesforceObjectFieldsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/sender/{idpId}":{"get":{"tags":["Notification"],"summary":"Get notification sender email","description":"Get notification sender email address for configured IDP connection","operationId":"notificationSenderGetRequest","parameters":[{"name":"idpId","in":"path","description":"IDP connection Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Notification sender email address","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSenderGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/metadata/{metadataId}/commit":{"get":{"tags":["Metadata"],"summary":"Get metadata object history","operationId":"objectMetadataHistoryGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"metadataId","in":"path","description":"metadata object Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Requested metadata object history information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectMetadataHistoryGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/metadata/{metadataId}/commit/{commitHash}":{"get":{"tags":["Metadata"],"summary":"Get metadata object file content","description":"Get metadata object file content by commit hash","operationId":"objectMetadataFileContentGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"metadataId","in":"path","description":"metadata object Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"commitHash","in":"path","description":"commit hash","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Requested content of metadata object commit","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectMetadataFileContentGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/metadata/{metadataId}/commit/{commitHash}/file":{"get":{"tags":["Metadata"],"summary":"Download metadata object file","description":"Download specific version of metadata object file","operationId":"objectMetadataFileGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"metadataId","in":"path","description":"metadata object Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"commitHash","in":"path","description":"commit hash","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to the actual download","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/metadata/{metadataId}/commit/{commitHash}/compare/current":{"get":{"tags":["Metadata"],"operationId":"objectMetadataCommitHistoryGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"metadataId","in":"path","description":"metadata object Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"commitHash","in":"path","description":"commit hash","required":true,"schema":{"type":"string"}},{"name":"target_sf_instance_id","in":"query","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectMetadataHistoryPostResponseInner"}}}}}}}},"/api/v1/metadata/type":{"get":{"tags":["Metadata"],"summary":"Get list of metadata object types","description":"Get list of Salesforce metadata object types for an organization; requires priore execution of backup policy","operationId":"objectMetadataGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of metadata object types","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectMetadataGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/metadata/field":{"get":{"tags":["Metadata"],"summary":"Get metadata object definition","description":"Get list of fields and available operations for metadata object","operationId":"objectMetadataFieldGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of metadata object fields","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectMetadataFieldGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/license/validation":{"get":{"tags":["License"],"summary":"Validate application licensing status","operationId":"licenseValidationGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Application license validation result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LicenseValidationResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/legal":{"get":{"tags":["System"],"summary":"Get legal document","operationId":"legalDocumentGetRequest","parameters":[{"name":"type","in":"query","description":"type of legal document","required":true,"schema":{"$ref":"#/components/schemas/LegalDocumentType"}}],"responses":{"400":{"description":"Bad Request","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Requested legal document","content":{"application/octet-stream":{"schema":{"type":"string"}},"application/json":{"schema":{"type":"string"}}}},"401":{"description":"Unauthorized","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/init":{"get":{"tags":["System"],"summary":"Get application initialization status","description":"Get application initialization status. Status is updated by application once corresponding  initialization information, such as database connection and administrator password, is provided ","operationId":"initStatusGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Application initialization status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InitStatusGetResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/idp/oauth/{idp}/authorization-code":{"get":{"tags":["Idp"],"summary":"Get authorization URL for default IDP","description":"Get authorization URL for default IDP. Created link includes an application 'state' marker","operationId":"getIdpAuthorizationCodeRequestUrl","parameters":[{"name":"idp","in":"path","description":"identity provider name","required":true,"schema":{"$ref":"#/components/schemas/IdpProvider"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"Redirect URL for authorization via default IDP","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedirectUrlResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/idp/oauth/access-token":{"get":{"tags":["Idp"],"summary":"Get access token by code and state","description":"Get access token by code and state returned by IDP. Requires prior execution of authorization method to get 'code' and 'state' markers","operationId":"getIdpAccessTokenWithRedirectUrl","parameters":[{"name":"code","in":"query","description":"oauth authorization code","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","description":"application state marker","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"IDP access token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccessTokenResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/v1/file":{"get":{"tags":["File"],"summary":"Get list of file types","description":"Get list of file types (object name) included in backup and available for restore","operationId":"fileGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of file types","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/{fileObjectName}/parents":{"get":{"tags":["File"],"summary":"Get objects which have attachment file","description":"Get list of Salesforce objects which have file attachment of specified type.  For example which objects have an attachment with type 'ContentVersion' ","operationId":"fileTypeParentGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"fileObjectName","in":"path","description":"file object API name (the same value retrieved from endpoint /api/v1/file)","required":true,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of objects which have file attachment of specified type","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/{fileObjectName}/field":{"get":{"tags":["File"],"operationId":"fileFieldsGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"fileObjectName","in":"path","description":"file object API name","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ObjectFieldsByNameGetResponseInner"}}}}}}}},"/api/v1/file/skipped":{"get":{"tags":["File"],"summary":"Get list of files excluded from backup policy","description":"Download zip archive with list of files which application has failed to download. List includes both -  files that have and have not reached the maximum number of failed attempts to back up a file ","operationId":"skippedFilesGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"only_resumable","in":"query","description":"set 'true' to get list of files which have not reached the maximum number of failed attempts to backup","required":true,"schema":{"type":"boolean"}},{"name":"objects","in":"query","description":"file object API name","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Zip archive with the list of excluded files","content":{"multipart/form-data":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not Found","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}},"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal Server Error","content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/salesforce":{"get":{"tags":["File"],"summary":"Get all file objects from Salesforce","operationId":"salesforceFilesGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of file objects in Salesforce","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/file/reload":{"get":{"tags":["File"],"summary":"Get list of file types for reload","description":"Get list of file types (object name) included in backup and available for reload","operationId":"fileReloadGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of file types","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ObjectGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/environment":{"get":{"tags":["System"],"summary":"Get environment information","operationId":"environmentGetRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Application environment information","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEnvironmentResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/encryption/{databaseId}/describe":{"get":{"tags":["Encryption"],"summary":"Get encryption key details for database","description":"Get details of encryption key used by database, including details of key management service used to encrypt stored key","operationId":"encryptionDescribeGetRequest","parameters":[{"name":"databaseId","in":"path","description":"database connection Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Details of encryption key used by organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionDescriptionGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/encryption/list":{"get":{"tags":["Encryption"],"summary":"Get encryption details for company","description":"Get encryption key details for each organization of a company. Result is filtered to show details for organizations available to a user based on assigned role","operationId":"encryptionListGetRequest","parameters":[{"name":"company_id","in":"query","description":"company Id","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Encryption details by organization","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EncryptionListGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/encryption/datakey/{databaseId}/download":{"get":{"tags":["Encryption"],"summary":"Download data encryption key","description":"Download data encryption key. When requesting a key from database connection that is not used by backup policy, provide database connection Id","operationId":"encryptionDataKeyDownloadGetRequest","parameters":[{"name":"databaseId","in":"path","description":"database connection Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Zip archive of the encryption key","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"type":"string","format":"binary"}}}},"401":{"description":"Unauthorized","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/download":{"get":{"tags":["Download"],"summary":"Download file prepared by previous request","operationId":"downloadGetRequest","parameters":[{"name":"token","in":"query","description":"unique token for download session","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Requested file","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/StreamingResponseBody"}},"application/json":{"schema":{"$ref":"#/components/schemas/StreamingResponseBody"}}}},"401":{"description":"Unauthorized","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/octet-stream":{"schema":{"$ref":"#/components/schemas/CodedError"}},"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}}}},"/api/v1/cloud/provider":{"get":{"tags":["Cloud"],"operationId":"getCloudProviderList","parameters":[{"name":"company_id","in":"query","description":"company ID","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CloudProviderGetResponse"}}}}}}}},"/api/v1/cloud/provider/aws/region":{"get":{"tags":["Cloud"],"operationId":"getAwsRegionList","responses":{"400":{"description":"Bad Request"},"422":{"description":"Unprocessable Entity"},"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AwsRegionGetResponse"}}}}}}}},"/api/v1/backup/job/{jobId}/log":{"get":{"tags":["Backup"],"summary":"Get list of backup policy execution sessions","description":"Get list of backup policy execution sessions and summary information for each found session","operationId":"backupJobLogSummaryGetRequest","parameters":[{"name":"jobId","in":"path","description":"backup policy Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"status","in":"query","description":"backup policy status","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobStatus"}}},{"name":"type","in":"query","description":"backup policy job type","required":false,"schema":{"$ref":"#/components/schemas/BackupJobType"}},{"name":"from_date","in":"query","description":"search for sessions started from 'date'","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to_date","in":"query","description":"search for sessions started to 'date'","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of backup policy sessions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobLogSummaryGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/backup/job/log/{logId}":{"get":{"tags":["Backup"],"summary":"Get detailed log for backup policy session","description":"Get detailed log for backup policy session, including statistics for each backed-up object","operationId":"backupJobLogDetailsGetRequest","parameters":[{"name":"logId","in":"path","description":"backup session Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"status","in":"query","description":"backup session status","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobStatus"}}},{"name":"object_name","in":"query","description":"name of event or backed-up object; search by 'contains'","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Backup policy session details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BackupJobLogDetailsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/audit":{"get":{"tags":["System"],"summary":"Get audit log information","operationId":"systemAuditGetRequest","parameters":[{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"from_date","in":"query","description":"audit record creation date \"from\"","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"to_date","in":"query","description":"audit record creation date \"to\"","required":false,"schema":{"type":"string","format":"date-time"}},{"name":"event","in":"query","description":"logged event details; search by condition 'contains'","required":false,"schema":{"type":"string"}},{"name":"event_type","in":"query","description":"audit event type","required":false,"schema":{"$ref":"#/components/schemas/SystemAuditEventType"}},{"name":"user_name","in":"query","description":"logged username","required":false,"schema":{"type":"string"}},{"name":"user_ip","in":"query","description":"logged user Id","required":false,"schema":{"type":"string"}},{"name":"company","in":"query","description":"company Id","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of found audit records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemAuditGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/object":{"get":{"tags":["Archival"],"summary":"Get objects available for archival","operationId":"archiveObjectsGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}},{"name":"value","in":"query","description":"object API name; search by condition 'contains'","required":false,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of objects available for archival","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveObjectsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/{jobRunId}/export":{"get":{"tags":["Archival"],"summary":"Export data archival session result","operationId":"archiveJobExportGetRequest","parameters":[{"name":"jobRunId","in":"path","description":"data archival session Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Link to download requested file","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDownloadResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/{jobId}/log":{"get":{"tags":["Archival"],"summary":"Get list of data archival policy execution sessions","operationId":"archiveJobLogGetByIdRequest","parameters":[{"name":"jobId","in":"path","description":"data archival policy Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"status","in":"query","description":"archival policy log status","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveJobStatus"}}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"List of data archival policy sessions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobLogGetByIdResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/verify/permission":{"get":{"tags":["Archival"],"summary":"Verify permissions required for data archival","description":"Check that Salesforce user used to execute data archival policy has required permissions","operationId":"archiveVerifyPermissionsGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"object_api_name","in":"query","description":"object API name","required":true,"schema":{"type":"string"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Permissions verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveVerifyPermissionsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/verify/config":{"get":{"tags":["Archival"],"summary":"Check if related objects are backed-up","description":"Check if related objects which will be archived together with root record,  are included in backup policy","operationId":"archiveVerifyConfigGetRequest","parameters":[{"name":"sf_instance_id","in":"query","description":"organization Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"object_api_name","in":"query","description":"object API name","required":true,"schema":{"type":"string"}},{"name":"hierarchy_restricted_depth","in":"query","description":"Hierarchy depth limit","required":false,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Verification result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveConsentListGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/archive/job/log/{logId}":{"get":{"tags":["Archival"],"summary":"Get detailed log for data archival session","operationId":"archiveJobLogDetailsGetRequest","parameters":[{"name":"logId","in":"path","description":"data archival session Id","required":true,"schema":{"type":"integer","format":"int32"}},{"name":"status","in":"query","description":"archival job action log status","required":false,"schema":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveJobStatus"}}},{"name":"page","in":"query","description":"page number for request","required":false,"schema":{"type":"integer","format":"int32","default":0,"minimum":0}},{"name":"size","in":"query","description":"page size","required":false,"schema":{"type":"integer","format":"int32","default":256,"minimum":0}},{"name":"sort_fields","in":"query","required":false,"schema":{"type":"array","default":["id"],"items":{"type":"string"}}},{"name":"sort_dirs","in":"query","required":false,"schema":{"type":"array","items":{"type":"string"}}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"Data archival session details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArchiveJobLogDetailsGetResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/user/message":{"delete":{"tags":["Notification"],"summary":"Clear all notification messages for user","operationId":"notificationUserMessagesDeleteRequest","responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification messages have been deleted for user"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}},"/api/v1/notification/user/message/{messageId}":{"delete":{"tags":["Notification"],"summary":"Delete notification message","operationId":"notificationUserMessageByIdDeleteRequest","parameters":[{"name":"messageId","in":"path","description":"notification message Id","required":true,"schema":{"type":"integer","format":"int32"}}],"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"422":{"description":"Unprocessable Entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"200":{"description":"System notification message has been deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CodedError"}}}}},"security":[{"bearerAuth":[]}]}}},"components":{"schemas":{"ApplicationUserGetResponse":{"type":"object","description":"Details of user or a group","properties":{"id":{"type":"integer","format":"int32","description":"user or group Id","example":123},"external_id":{"type":"string","description":"user or group Id in IDP system","example":"00533000006xfXcAAQ"},"uniqname":{"type":"string","description":"username in IDP system","example":"user@company.com"},"firstname":{"type":"string","description":"user first name"},"lastname":{"type":"string","description":"user last name"},"email":{"type":"string","description":"user or group email address","example":"user@company.com"},"is_group":{"type":"boolean","description":"is record represents a group","example":false},"inactive":{"type":"boolean","description":"is user or group record inactivated","example":false},"inactive_reason":{"$ref":"#/components/schemas/ApplicationUserInactiveReason"},"idp":{"$ref":"#/components/schemas/IdpProvider"},"idp_domain":{"type":"string","description":"IDP domain used to authenticate user or a group","example":"https://company-name.my.salesforce.com"},"slack":{"type":"string"},"vsf_created_date":{"type":"string","format":"date-time","description":"user or group created date"},"permission":{"type":"array","description":"list of roles assigned to user or a group","items":{"$ref":"#/components/schemas/RoleV2"}},"login_history":{"type":"array","description":"user login history","items":{"$ref":"#/components/schemas/LoginHistory"}},"last_login":{"$ref":"#/components/schemas/LoginHistory"}},"required":["email","external_id","id","idp","inactive","is_group","last_login","login_history","permission","uniqname"]},"ApplicationUserInactiveReason":{"type":"string","enum":["manual","idp_disabled","url_ineligible"]},"CompanyV2":{"type":"object","properties":{"company_id":{"type":"string","format":"uuid","description":"company Id","example":"550e8400-e29b-41d4-a716-446655440000"},"company_name":{"type":"string","description":"company name","example":"My company"},"all_sf_instance":{"type":"boolean","description":"does user have access to all organizations of a company","example":false},"sf_instance":{"type":"array","description":"list of organizations user or a group has access","items":{"$ref":"#/components/schemas/SFInstanceV2"}}},"required":["all_sf_instance","company_id"]},"IdpProvider":{"type":"string","enum":["azure","salesforce"]},"LoginHistory":{"type":"object","description":"login audit record","properties":{"last_login":{"type":"string","format":"date-time","description":"login date"},"ip":{"type":"string","description":"IP address login attempt is made of","example":"1.1.1.1"},"status":{"type":"string","description":"is login attempt was successful","example":"success"}}},"RoleV2":{"type":"object","description":"scope of assigned role","properties":{"name":{"type":"string","description":"name of assigned role","example":"backup_operator"},"all_companies":{"type":"boolean","description":"is access provided to all companies","example":false},"company":{"type":"array","description":"list of companies user or a group has access","items":{"$ref":"#/components/schemas/CompanyV2"}}},"required":["all_companies","name"]},"SFInstanceV2":{"type":"object","properties":{"sf_instance_id":{"type":"integer","format":"int32","description":"organization Id","example":12},"sf_instance_name":{"type":"string","description":"Salesforce organization alias","example":"My organization"}},"required":["sf_instance_id"]},"ErrorResponse":{"type":"object","description":"The global response with an error","properties":{"status":{"type":"integer","format":"int32","description":"HTTP status of response"},"code":{"type":"string","description":"error code for automatic error trigger"},"message":{"type":"string"},"result":{}}},"ApplicationUserPutRequest":{"type":"object","description":"User or a group details available for modification","properties":{"firstname":{"type":"string","description":"user first name"},"lastname":{"type":"string","description":"user last name"},"email":{"type":"string","description":"user or group email address","example":"user@company.com"},"inactive":{"type":"boolean","description":"is user or group record inactivated","example":false},"slack":{"type":"string"},"permission":{"type":"array","description":"list of roles assigned to user or a group","items":{"$ref":"#/components/schemas/RoleV2"}}}},"CodedError":{"type":"object","properties":{"trace":{"type":"string","description":"trace Id from sleuth","example":"3ddbce7f9ab88baa"},"timestamp":{"type":"string","description":"timestamp with timezone","example":"2021-06-04T11:22:15.813+000"},"timestamp_utc":{"type":"string","description":"timestamp with UTC timezone","example":"2021-06-04 11:22:15.813"},"path":{"type":"string","description":"endpoint url with error","example":"/admin/v1/user"},"method":{"type":"string","description":"endpoint HTTP method","example":"GET/PUT/POST/DELETE"},"status":{"type":"integer","format":"int32","description":"HTTP status code","example":400},"status_description":{"type":"string","description":"status code description","example":"Bad Request"},"error_code":{"type":"string","description":"error code string","example":"8T31"},"message":{"type":"string","description":"full technical message"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/CodedErrorErrorsInner"}}}},"CodedErrorErrorsInner":{"type":"object","properties":{"code":{"type":"string","description":"text error code","example":"failedRequest"},"user_message":{"type":"string","description":"message for user","example":"Request failed with exception [845a58c4-1e4e-4ea6-9fd2-90f1f9556d69]"},"object_name":{"type":"string","description":"error object name if known","example":"com.veeam.exception.CodedResponseStatusException"},"context":{"type":"array","items":{}}}},"CompanySchedulePostRequest":{"type":"object","description":"Schedule details","properties":{"name":{"type":"string","description":"schedule name","example":"Custom schedule name"},"schedule":{"type":"string","description":"cron expression","example":"0 0 0 ? * SUN"},"timezone":{"type":"string","description":"schedule timezone","example":"US/Central"},"description":{"type":"string","description":"schedule description","example":"My custom schedule"}},"required":["name","schedule"]},"DataMaskTemplateGetResponse":{"type":"object","description":"data mask template","properties":{"id":{"type":"integer","format":"int32","description":"data mask template Id","example":1},"name":{"type":"string","description":"data mask template name","example":"Test"},"company_id":{"type":"string","format":"uuid","description":"company Id"},"company_name":{"type":"string","description":"company name"},"sf_instance_id":{"type":"integer","format":"int32","description":"organization Id","example":2},"sf_instance_name":{"type":"string"},"patterns":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskTemplatePatternsInner"}},"vsf_created_date":{"type":"string","format":"date-time","description":"audit record creation date"},"vsf_created_by":{"type":"string","description":"user who created job","example":"user@company.com"},"vsf_last_modified_date":{"type":"string","format":"date-time","description":"last modified date"},"vsf_last_modified_by":{"type":"string","description":"user who modified job last","example":"user@company.com"},"vsf_version":{"type":"integer","format":"int32","description":"version of application"}},"required":["company_id","id","name","patterns","sf_instance_id","vsf_created_by","vsf_created_date","vsf_version"]},"DataMaskTemplatePatternsInner":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"pattern Id"},"field":{"type":"string","description":"field name"},"skip_masking_if_empty":{"type":"boolean","description":"If true, skip masking when source value is null/empty. If false, always generate a masked value."},"masking_method":{"$ref":"#/components/schemas/DataMaskingMethodExtended"},"object":{"type":"string","description":"object name"}},"required":["field","id","object"]},"DataMaskingMethodExtended":{"type":"object","properties":{"name":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskingMethodParametersInner"}},"result_type":{"$ref":"#/components/schemas/FieldJsonType"}},"required":["name","result_type"]},"DataMaskingMethodParametersInner":{"type":"object","properties":{"name":{"type":"string"},"value":{}},"required":["name","value"]},"FieldJsonType":{"type":"string","enum":["string","int","boolean","float","timestamp","date","time","array_int","array_string"]},"DataMaskTemplatePatternsShortInner":{"type":"object","properties":{"field":{"type":"string","description":"field name"},"skip_masking_if_empty":{"type":"boolean","description":"If true, skip masking when source value is null/empty. If false, always generate a masked value."},"masking_method":{"$ref":"#/components/schemas/DataMaskingMethod"},"object":{"type":"string","description":"object name"}},"required":["field","masking_method","object","skip_masking_if_empty"]},"DataMaskTemplatePutRequest":{"type":"object","properties":{"name":{"type":"string","description":"data mask template name","example":"Test"},"patterns":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskTemplatePatternsShortInner"}}}},"DataMaskingMethod":{"type":"object","properties":{"name":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskingMethodParametersInner"}}},"required":["name"]},"JobDefaultResponse":{"type":"object","properties":{"job_id":{"type":"integer","format":"int32","description":"job Id","example":1},"success":{"type":"boolean","description":"operation status","example":true},"message":{"type":"string","description":"status message","example":"Ok"}}},"RestoreJobPutRequest":{"type":"object","description":"Jobs update request","properties":{"name":{"type":"string","description":"job name"},"description":{"type":"string","description":"job description"}}},"NotificationRuleCdcConfig":{"type":"object","description":"send notification if amount of modified records exceeded specified threshold; applicable for type 'CDC'","properties":{"sf_org_id":{"type":"integer","format":"int32","description":"organization Id","example":123},"object_api_name":{"type":"array","example":["Account","Opportunity"],"items":{"type":"string"}},"measure":{"$ref":"#/components/schemas/NotificationRuleCdcConfigMeasure"},"change_type":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRuleCdcConfigChangeType"}},"value":{"type":"integer","format":"int64","description":"data change amount to trigger a notification","example":30}}},"NotificationRuleCdcConfigChangeType":{"type":"string","enum":["INSERTED","UPDATED","DELETED"]},"NotificationRuleCdcConfigMeasure":{"type":"string","enum":["PERCENT","ROWS"]},"NotificationRuleCode":{"type":"string","enum":["BACKUP","BACKUP_OBJECT","JOB_FINISH","RESTORE","RESTORE_OBJECT","DB_CONN","SF_CONN","LICENSE","STORAGE_SPACE","NEW_VERSION","ARCHIVE","ENCRYPTION","CDC"]},"NotificationRuleOnStatus":{"type":"object","description":"job status or parameter value threshold to trigger a notification","properties":{"on_success":{"type":"boolean","description":"send notification if job is completed with status 'SUCCESS'","example":false},"on_warning":{"type":"boolean","description":"send notification if job is completed with status 'WARNING'","example":false},"on_error":{"type":"boolean","description":"send notification if job has failed or is aborted","example":true},"storage_config":{"type":"integer","format":"int32","description":"send notification if file storage size exceeded specified threshold (%); applicable for type 'STORAGE_SPACE'","example":80},"cdc_config":{"$ref":"#/components/schemas/NotificationRuleCdcConfig"}}},"NotificationRulePostRequest":{"type":"object","description":"System notification rule description","properties":{"code":{"$ref":"#/components/schemas/NotificationRuleCode"},"state":{"$ref":"#/components/schemas/NotificationRuleState"},"on_status":{"$ref":"#/components/schemas/NotificationRuleOnStatus"},"threshold":{"type":"integer","format":"int32","description":"number of time an event should happen before a notification is sent; 0 - immediately","example":0},"subject":{"type":"string","description":"notification subject; runtime variables can be used","example":"[%job_status%]: [%job_type%] backup for [%salesforce_name%]"},"channel":{"type":"array","description":"channel and recipients for the notification rule","items":{"$ref":"#/components/schemas/NotificationRulePostRequestChannelInner"}},"scope":{"type":"array","description":"list of monitored companies, organizations or jobs","items":{"$ref":"#/components/schemas/NotificationRuleScope"}}},"required":["channel","code","state"]},"NotificationRulePostRequestChannelInner":{"type":"object","properties":{"application":{"type":"boolean","description":"set 'true' to send notification to via application channel; channel Id can be omitted","example":false},"recipient":{"$ref":"#/components/schemas/NotificationRuleRecipient"},"channel":{"type":"integer","format":"int32","description":"notification channel Id","example":12}}},"NotificationRuleRecipient":{"type":"object","properties":{"recipient":{"type":"array","description":"recipients of the notification sent on email or in slack","items":{"type":"string"}},"application":{"$ref":"#/components/schemas/NotificationRuleRecipient_application"}}},"NotificationRuleRecipient_application":{"type":"object","description":"user roles recipients of the notification in application channel","properties":{"admin":{"type":"boolean","example":false},"backup_operator":{"type":"boolean","example":false},"restore_operator":{"type":"boolean","example":false},"viewer":{"type":"boolean","example":false}}},"NotificationRuleScope":{"type":"object","description":"monitored entity (company, organization, job)","properties":{"object_id":{"type":"string","description":"entity Id"},"type":{"$ref":"#/components/schemas/NotificationRuleScopeObjectType"}}},"NotificationRuleScopeObjectType":{"type":"string","enum":["ALL","COMPANY","SALESFORCE_INSTANCE","BACKUP_JOB","RESTORE_JOB"]},"NotificationRuleState":{"type":"string","enum":["ENABLED","DISABLED"]},"IdpEmailProperties":{"type":"object","description":"IDP connection information","properties":{"applicable":{"type":"boolean","description":"can IDP be used to send email notifications"},"enabled":{"type":"boolean","description":"is IDP connection enabled for sending email notifications"},"verified":{"type":"boolean","description":"is IDP connection verified"}}},"NotificationChannelPutResponse":{"type":"object","description":"System notification channel details","properties":{"id":{"type":"integer","format":"int32","description":"notification channel Id","example":12},"type":{"$ref":"#/components/schemas/NotificationChannelType"},"company_id":{"type":"string","format":"uuid","description":"company Id"},"enabled":{"type":"boolean","description":"is notification channel enabled","example":true},"properties":{"$ref":"#/components/schemas/NotificationChannelPutResponseProperties"}}},"NotificationChannelPutResponseProperties":{"type":"object","description":"connection properties","properties":{"name":{"type":"string","description":"channel name"},"server":{"type":"string","description":"server url","example":"test.server.com"},"port":{"type":"integer","format":"int32","description":"server port","example":25},"auth":{"type":"boolean","description":"is authentication required","example":false},"user":{"type":"string","description":"server auth user"},"secret":{"type":"string","description":"server secret","maxLength":2147483647,"minLength":1},"timeout":{"type":"integer","format":"int32","description":"server timeout","example":1000},"ssl":{"type":"boolean","example":false},"sender":{"type":"string","description":"email address 'FROM', if non-default value is provided","example":"user@company.com"},"idp_id":{"type":"integer","format":"int32","description":"IDP connection Id, if an existing connection is used"},"idp_email":{"$ref":"#/components/schemas/IdpEmailProperties"}},"required":["name"]},"NotificationChannelType":{"type":"string","enum":["APPLICATION","EMAIL","SLACK"]},"NotificationChannelPutRequestProperties":{"type":"object","description":"connection details","properties":{"name":{"type":"string","description":"channel name"},"server":{"type":"string","description":"server url","example":"test.server.com"},"port":{"type":"integer","format":"int32","description":"server port","example":25},"auth":{"type":"boolean","description":"is authentication required","example":false},"user":{"type":"string","description":"server auth user"},"secret":{"type":"string","description":"server secret"},"timeout":{"type":"integer","format":"int32","description":"server timeout","example":100},"ssl":{"type":"boolean","example":false},"sender":{"type":"string","description":"email address 'FROM', if non-default value is provided","example":"user@company.com"},"idp_id":{"type":"integer","format":"int32","description":"IDP connection Id, if an existing connection is used","example":123}}},"NotificationPropertiesPutRequest":{"type":"object","description":"System notification channel details","properties":{"company_id":{"type":"string","format":"uuid","description":"company Id"},"enabled":{"type":"boolean","description":"is notification channel enabled"},"properties":{"$ref":"#/components/schemas/NotificationChannelPutRequestProperties"}}},"IdpEmailPropertiesGetResponse":{"type":"object","properties":{"applicable":{"type":"boolean","description":"can IDP be used to send email notifications"},"enabled":{"type":"boolean","description":"is IDP connection enabled for sending email notifications"},"verified":{"type":"boolean","description":"is IDP connection verified"}},"required":["applicable","enabled","verified"]},"IdpGetResponse":{"type":"object","description":"Identity provider details","properties":{"id":{"type":"integer","format":"int32","description":"identity provider Id","example":123},"provider":{"$ref":"#/components/schemas/IdpProvider"},"name":{"type":"string","description":"identity provider name","example":"Salesforce"},"configured":{"type":"boolean","description":"is identity provider configured","example":true},"protocol":{"type":"string","description":"IDP authorization protocol","example":"oauth2"},"properties":{"$ref":"#/components/schemas/IdpPropertiesGetResponse"},"salesforce":{"$ref":"#/components/schemas/IdpSalesforcePropertiesGetResponse"},"email":{"$ref":"#/components/schemas/IdpEmailPropertiesGetResponse"},"sso":{"$ref":"#/components/schemas/IdpSsoPropertiesGetResponse"}},"required":["configured","id","properties","provider"]},"IdpPropertiesGetResponse":{"type":"object","description":"connection properties","properties":{"domain":{"type":"string"},"callback_url":{"type":"string","description":"callback URL for authorization request"},"client_id":{"type":"string","description":"IDP client Id"},"client_secret":{"type":"string","description":"IDP client secret"},"tenant_id":{"type":"string","description":"IDP tenant Id, if applicable"}},"required":["client_id","client_secret","domain"]},"IdpSalesforcePropertiesGetResponse":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/SalesforceInstanceConfigType"},"sso_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sso_login_allowed":{"type":"array","items":{"type":"string"}},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows."}},"required":["sso_login_type"]},"IdpSsoPropertiesGetResponse":{"type":"object","properties":{"applicable":{"type":"boolean","description":"is IDP connection can be used for SSO"},"enabled":{"type":"boolean","description":"is IDP connection enabled for SSO"},"verified":{"type":"boolean","description":"is IDP connection verified"}},"required":["applicable","enabled","verified"]},"SalesforceInstanceConfigType":{"type":"string","enum":["ca","eca"]},"SalesforceType":{"type":"string","enum":["prod","test","custom"]},"IdpEmailPropertiesPutRequest":{"type":"object","description":"possibility of using IDP to send email notifications","properties":{"enabled":{"type":"boolean","description":"is IDP connection enabled for sending email notifications"},"verified":{"type":"boolean","description":"is IDP connection verified"}}},"IdpPropertiesPutRequest":{"type":"object","description":"connection properties","properties":{"client_id":{"type":"string","description":"IDP client Id"},"client_secret":{"type":"string","description":"IDP client secret"},"tenant_id":{"type":"string","description":"IDP tenant Id, if applicable"}}},"IdpPutRequest":{"type":"object","description":"Identity provider details","properties":{"name":{"type":"string","description":"identity provider name","example":"Salesforce"},"properties":{"$ref":"#/components/schemas/IdpPropertiesPutRequest"},"salesforce":{"$ref":"#/components/schemas/IdpSalesforcePropertiesPutRequest"},"email":{"$ref":"#/components/schemas/IdpEmailPropertiesPutRequest"},"sso":{"$ref":"#/components/schemas/IdpSsoPropertiesPutRequest"}}},"IdpSalesforcePropertiesPutRequest":{"type":"object","properties":{"sso_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sso_login_allowed":{"type":"array","items":{"type":"string"}},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows."}}},"IdpSsoPropertiesPutRequest":{"type":"object","description":"possibility of using IDP for SSO","properties":{"enabled":{"type":"boolean","description":"is IDP connection can be used for SSO"},"verified":{"type":"boolean","description":"is IDP connection verified"}}},"EncryptionDataKeyProviderRequest":{"type":"object","properties":{"provider_id":{"type":"integer","format":"int32","description":"key management service connection Id","example":1},"provider_key_external_id":{"type":"string","description":"key Id in a key management service"},"provider_key_parameters":{"$ref":"#/components/schemas/EncryptionKeyProviderRequestParameters"}}},"EncryptionKeyAwsRequestParameters":{"type":"object","properties":{"region":{"type":"string","description":"region name in a key management service","example":"us-west-1"}}},"EncryptionKeyProviderRequestParameters":{"type":"object","properties":{"aws":{"$ref":"#/components/schemas/EncryptionKeyAwsRequestParameters"}}},"SalesforceDatabasePutRequest":{"type":"object","properties":{"name":{"type":"string","description":"database connection label","example":"My database"},"db_name":{"type":"string","description":"database name","example":"my_database"},"port":{"type":"integer","format":"int32","description":"database port","example":5432},"user":{"type":"string","description":"database userid","example":"vbsf"},"pwd":{"type":"string","description":"database password"},"url":{"type":"string","description":"database server","example":"localhost"}}},"CompanyPostRequest":{"type":"object","properties":{"name":{"type":"string","example":"My company name"}},"required":["name"]},"AwsCloudProviderCredentials":{"type":"object","description":"AWS security credentials - access key","properties":{"access_key_id":{"type":"string","description":"access key Id","example":"AKIAIOSFODNN7EXAMPLE","maxLength":2147483647,"minLength":1},"secret_access_key":{"type":"string","description":"secret access key, masked","example":"123*************************************","maxLength":2147483647,"minLength":1}},"required":["access_key_id","secret_access_key"]},"AwsCloudProviderGetResponse":{"type":"object","description":"Cloud provider connection record","properties":{"id":{"type":"integer","format":"int32","description":"connection record Id","example":1},"name":{"type":"string","description":"cloud provider account","example":"123456789012"},"external_id":{"type":"string","description":"cloud provider account Id","example":"123456789012"},"type":{"$ref":"#/components/schemas/CloudProviderType"},"credentials":{"$ref":"#/components/schemas/AwsCloudProviderCredentials"},"company_id":{"type":"string","format":"uuid","description":"company Id"},"supported_services":{"type":"array","items":{"$ref":"#/components/schemas/AwsCloudProviderServiceType"}},"status":{"$ref":"#/components/schemas/AwsCloudProviderStatus"},"description":{"type":"string","description":"connection record description","example":"description provided by user"}},"required":["company_id","credentials","external_id","id","name","status","supported_services"]},"AwsCloudProviderServiceType":{"type":"string","enum":["KMS","S3","ECS","SQS"]},"AwsCloudProviderStatus":{"type":"string","enum":["valid","invalid","unknown"]},"CloudProviderType":{"type":"string","enum":["AWS","AZURE","CGP"]},"AwsCloudProviderPutRequest":{"type":"object","properties":{"credentials":{"$ref":"#/components/schemas/AwsCloudProviderCredentials"},"description":{"type":"string"}}},"BackupJobPostRequest":{"type":"object","description":"backup policy details","properties":{"db_server_id":{"type":"integer","format":"int32","description":"database connection Id","example":1},"add_new_objects":{"type":"boolean","description":"set 'true' to automatically include new objects in the backup policy","example":true},"add_new_fields":{"type":"boolean","description":"set 'true' to automatically include new fields in the backup policy","example":true},"global_schedule_id":{"type":"integer","format":"int32","description":"Id of the main schedule used to backup metadata, data and files","example":1},"api_usage_limit_percent":{"type":"integer","format":"int32","description":"daily API usage limit for backup policy run","example":50},"api_bulk_usage_limit_percent":{"type":"integer","format":"int32","description":"daily bulk API usage limit for backup policy run","example":50},"start_encryption_now":{"type":"boolean","description":"set 'true' to apply data encryption changes right after saving backup policy"},"objects":{"type":"array","description":"objects which have custom backup schedule assigned","items":{"$ref":"#/components/schemas/BackupJobPostRequestObjectsInner"}},"exclude_objects":{"type":"array","description":"objects excluded from backup policy","items":{"type":"string"}},"exclude_fields":{"type":"array","description":"fields excluded from backup policy","items":{"$ref":"#/components/schemas/BackupJobPostRequestExcludeFieldsInner"}},"encrypt_fields":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobPostRequestEncryptFieldsInner"}},"files":{"type":"array","description":"file types included in the backup policy","items":{"$ref":"#/components/schemas/BackupJobPostRequestFilesInner"}},"encrypt_files":{"type":"array","description":"file types to encrypt included in the backup policy","items":{"$ref":"#/components/schemas/BackupJobPostRequestEncryptFilesInner"}},"retention":{"$ref":"#/components/schemas/BackupJobPostRequest_retention"}},"required":["add_new_fields","add_new_objects","db_server_id","global_schedule_id"]},"BackupJobPostRequestEncryptFieldsInner":{"type":"object","properties":{"field":{"type":"string","description":"Field name to encrypt"},"object":{"type":"string","description":"Object API name to encrypt its field"}}},"BackupJobPostRequestEncryptFilesInner":{"type":"object","properties":{"object":{"type":"string","description":"file to encrypt object API name","example":"Attachment"}},"required":["object"]},"BackupJobPostRequestExcludeFieldsInner":{"type":"object","properties":{"field":{"type":"string","description":"field API name","example":"Description"},"object":{"type":"string","description":"object API name","example":"Opportunity"}}},"BackupJobPostRequestFilesInner":{"type":"object","properties":{"object":{"type":"string","description":"file object API name","example":"Attachment"}},"required":["object"]},"BackupJobPostRequestObjectsInner":{"type":"object","properties":{"object_api_name":{"type":"string","description":"object API name","example":"OpportunityLineItem"},"schedule_id":{"type":"integer","format":"int32","description":"schedule Id","example":2}},"required":["object_api_name","schedule_id"]},"BackupJobPostRequestRetentionObjectsInner":{"type":"object","properties":{"object_name":{"type":"string","description":"object API name","example":"Contact"},"enabled":{"type":"boolean","description":"is retention schedule enabled","example":true},"deleted_older_than":{"type":"integer","format":"int32","description":"delete record version older than specified value","example":12},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"}},"required":["deleted_older_period","deleted_older_than","enabled","object_name"]},"BackupJobPostRequest_retention":{"type":"object","description":"retention settings","properties":{"data":{"$ref":"#/components/schemas/BackupJobPostRequest_retention_data"},"file":{"$ref":"#/components/schemas/BackupJobPostRequest_retention_file"},"content":{"$ref":"#/components/schemas/BackupJobPostRequest_retention_content"},"objects":{"type":"array","description":"objects with custom retention settings","items":{"$ref":"#/components/schemas/BackupJobPostRequestRetentionObjectsInner"}}}},"BackupJobPostRequest_retention_content":{"type":"object","description":"ContentDocument retention settings","properties":{"enabled":{"type":"boolean","description":"is retention schedule enabled","example":false},"deleted_older_than":{"type":"integer","format":"int32","description":"purge historical ContentVersion older than specified value from backup","example":3},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"}},"required":["deleted_older_period","deleted_older_than","enabled"]},"BackupJobPostRequest_retention_data":{"type":"object","description":"main data retention settings","properties":{"enabled":{"type":"boolean","description":"is retention schedule enabled","example":true},"deleted_older_than":{"type":"integer","format":"int32","description":"delete record version older than specified value","example":6},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"},"delete_attachment":{"type":"boolean","description":"should Attachment be deleted together with main record"}},"required":["delete_attachment","deleted_older_period","deleted_older_than","enabled"]},"BackupJobPostRequest_retention_file":{"type":"object","description":"files retention settings","properties":{"enabled":{"type":"boolean","description":"is retention schedule enabled","example":true},"deleted_older_than":{"type":"integer","format":"int32","description":"purge deleted files older than specified value from backup","example":3},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"}},"required":["deleted_older_period","deleted_older_than","enabled"]},"TimePeriod":{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"]},"BackupJobNamePutRequest":{"type":"object","properties":{"name":{"type":"string","description":"new backup policy name","example":"backup-policy-2","maxLength":2147483647,"minLength":1}},"required":["name"]},"ArchiveJobConfig":{"type":"object","properties":{"filters_logic":{"type":"string","description":"binary logic for provided filters","example":"1 AND 2 OR 3"},"filters":{"type":"array","description":"filtering criteria for root records","items":{"$ref":"#/components/schemas/FieldFilter"}},"filters_limit":{"type":"integer","format":"int32","description":"min required number of filters","minimum":1},"daily_api_requests_limit_percent":{"type":"integer","format":"int32","description":"daily API usage limit for data archival policy run"},"daily_bulk_api_batches_limit_percent":{"type":"integer","format":"int32","description":"daily bulk API usage limit for data archival policy run"},"check_permissions":{"type":"boolean","description":"verify user permissions when executing data archival policy"},"check_hierarchy":{"type":"boolean","description":"verify if all child objects are included in backup when executing data archival policy"},"hierarchy_restricted_depth":{"type":"integer","format":"int32"},"test_run":{"type":"boolean","description":"is data archival policy executed in test mode (data is not deleted)"}},"required":["filters"]},"ArchiveJobGetByIdResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"data archival policy Id","example":1},"sf_instance_id":{"type":"integer","format":"int32","description":"organization Id","example":2},"name":{"type":"string","description":"data archival policy name","example":"Test"},"description":{"type":"string","description":"data archival policy description","example":"Test data archival policy"},"state":{"$ref":"#/components/schemas/ArchiveJobState"},"status":{"$ref":"#/components/schemas/ArchiveJobStatus"},"object_api_name":{"type":"string","description":"root object API name","example":"Account"},"user_consent_list":{"type":"array","description":"list of not backed-up child objects user agreed to delete permanently","example":["Child_Object_1__c","Child_Object_2__c"],"items":{"type":"string"}},"schedule_id":{"type":"integer","format":"int32","description":"data archival policy execution schedule Id","example":3},"config":{"$ref":"#/components/schemas/ArchiveJobConfig"}}},"ArchiveJobState":{"type":"string","enum":["enabled","disabled"]},"ArchiveJobStatus":{"type":"string","enum":["STARTING","DRAFT","RUNNING","FAILED","SUCCESS","ABORTED","SKIPPED","WARNING","STOPPING","STOPPED"]},"FieldFilter":{"type":"object","properties":{"number":{"type":"integer","format":"int32","description":"filter number to specify filtering logic","example":1},"field":{"type":"string","description":"field API name in Salesforce","example":"IsDeleted"},"operator":{"$ref":"#/components/schemas/Operator"},"negation":{"type":"boolean","description":"negation status as example NOT equal","example":true},"value":{"type":"array","description":"list of filtering values","items":{"type":"string"}},"object":{"type":"string","description":"object API name in Salesforce","example":"Object_API_Name__c"}},"required":["field","negation","operator"]},"Operator":{"type":"string","enum":["equal","greater","less","contains","regexpLike","startsWith","endsWith","in","notIn","greaterOrEqual","lessOrEqual","lessThanPeriod"]},"ArchiveJobPutRequest":{"type":"object","description":"Data archival policy details","properties":{"name":{"type":"string","description":"data archival policy name","example":"Test"},"description":{"type":"string","description":"data archival policy description","example":"Test data archival policy"},"object_api_name":{"type":"string","description":"root object API name","example":"Account"},"user_consent_list":{"type":"array","description":"list of not backed-up child objects user agreed to delete permanently","example":["Child_Object_1__c","Child_Object_2__c"],"items":{"type":"string"}},"schedule_id":{"type":"integer","format":"int32","description":"data archival policy execution schedule Id","example":3},"config":{"$ref":"#/components/schemas/ArchiveJobConfig"}},"required":["config","name","object_api_name","schedule_id"]},"ApplicationSettingsComponent":{"type":"string","enum":["backend","backup","restore"]},"ApplicationSettingsPutRequest":{"type":"object","properties":{"parameters":{"type":"array","description":"list of application settings parameters","items":{"$ref":"#/components/schemas/ApplicationSettingsPutRequestParametersInner"}}}},"ApplicationSettingsPutRequestParametersInner":{"type":"object","properties":{"parameter":{"type":"string","description":"parameter name","example":"hierarchy.default.depth"},"value":{"type":"string","description":"parameter value","example":"10"},"component":{"$ref":"#/components/schemas/ApplicationSettingsComponent"},"reset":{"type":"boolean","description":"sset 'true' to reset value to default; 'value' parameter will be ignored","example":false}}},"AuthenticationScheme":{"type":"string","enum":["bearer"]},"AuthenticationScope":{"type":"string","enum":["admin:set_password","admin:reset_password","admin:delete_audit","internal:backup","internal:restore","internal:updater","local_administrator"]},"AuthenticationToken":{"type":"object","properties":{"scheme":{"$ref":"#/components/schemas/AuthenticationScheme"},"type":{"$ref":"#/components/schemas/AuthenticationTokenType"},"value":{"type":"string"},"issued_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"user_name":{"type":"string"},"scope":{"type":"array","items":{"$ref":"#/components/schemas/AuthenticationScope"}},"active":{"type":"boolean"}}},"AuthenticationTokenType":{"type":"string","enum":["ACCESS","REFRESH"]},"AuthenticationTokenValueWrapper":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"]},"Authentication":{"type":"object","properties":{"scheme":{"$ref":"#/components/schemas/AuthenticationScheme"},"access_token":{"type":"string","maxLength":2147483647,"minLength":20},"issued_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"},"scope":{"type":"array","items":{"$ref":"#/components/schemas/AuthenticationScope"}},"refresh_token":{"type":"string","maxLength":2147483647,"minLength":20}}},"ApplicationUserPostRequest":{"type":"object","description":"Details of user or a group being added","properties":{"idp_access_token":{"type":"string","description":"IDP access token"},"application_user":{"$ref":"#/components/schemas/ApplicationUserPostRequestApplicationUser"}},"required":["application_user"]},"ApplicationUserPostRequestApplicationUser":{"type":"object","properties":{"uniqname":{"type":"string","description":"username in IDP system","example":"user@company.com"},"external_id":{"type":"string","description":"user or group Id in IDP system","example":"00533000006xfXcAAQ"},"firstname":{"type":"string","description":"user first name"},"lastname":{"type":"string","description":"user last name"},"email":{"type":"string","description":"user or group email address","example":"user@company.com"},"is_group":{"type":"boolean","description":"is record represents a group","example":false},"permission":{"type":"array","description":"list of roles assigned to user or a group","items":{"$ref":"#/components/schemas/RoleV2"}}},"required":["external_id","is_group","permission","uniqname"]},"CompanySchedulesPostResponse":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"schedule Id","example":12}},"required":["id"]},"RetentionPeriodEnum":{"type":"string","enum":["DAY","WEEK","MONTH","YEAR"]},"RetentionTypeEnum":{"type":"string","enum":["DATA","OBJECT","ATTACHMENT","FILE","CONTENT"]},"SelectivelyRunBackendRetentionPoliciesPostRequest":{"type":"object","properties":{"retention_type":{"$ref":"#/components/schemas/RetentionTypeEnum","description":"Type of data processed by retention policy"},"object_name":{"type":"string","description":"API name of an object with custom schedule; requires type \"OBJECT\"","example":"OpportunityLineItem"},"retention_time":{"type":"integer","format":"int32","description":"Retention time","maximum":365,"minimum":1},"retention_period":{"$ref":"#/components/schemas/RetentionPeriodEnum","description":"Retention period"}}},"DataMaskTemplatePostRequest":{"type":"object","properties":{"name":{"type":"string","description":"data mask template name","example":"Test"},"sf_instance_id":{"type":"integer","format":"int32","description":"organization Id","example":2},"patterns":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskTemplatePatternsShortInner"}}},"required":["name","patterns","sf_instance_id"]},"DataMaskMethodsExecutePostResponseInner":{"type":"object","properties":{"name":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskingMethodParametersInner"}},"success":{"type":"boolean"},"result_type":{"$ref":"#/components/schemas/FieldJsonType"},"result":{}},"required":["name","result_type"]},"RestoreMappingRecordPostRequest":{"type":"object","properties":{"create":{"type":"array","description":"List of record Id mappings to be added","items":{"$ref":"#/components/schemas/RestoreMappingRecordPostRequestCreateInner"}},"delete":{"type":"array","description":"List of mapping records to be removed","items":{"type":"integer","format":"int32"}}}},"RestoreMappingRecordPostRequestCreateInner":{"type":"object","properties":{"object_name":{"type":"string","description":"object API name","example":"Account"},"old_id":{"type":"string","description":"original record Id","example":"001DD20014lIf2Y11"},"new_id":{"type":"string","description":"new record Id","example":"001DD20014lIf2Y22"}}},"RestoreMappingFieldPostRequest":{"type":"object","properties":{"create":{"type":"array","description":"List of fields to be added to the mapping table","items":{"$ref":"#/components/schemas/RestoreMappingFieldPostRequestCreateInner"}},"delete":{"type":"array","description":"List of field mapping Ids to be removed","items":{"type":"integer","format":"int32"}}}},"RestoreMappingFieldPostRequestCreateInner":{"type":"object","properties":{"object_name":{"type":"string","description":"object API name","example":"Contact"},"field_name":{"type":"string","description":"field API name","example":"Email"}}},"RestoreJobPostResponse":{"type":"object","description":"Created restore job","properties":{"id":{"type":"integer","format":"int32","description":"restore job Id","example":20},"name":{"type":"string","description":"restore job name"}}},"RestoreJobPostRequest":{"type":"object","description":"Draft restore job description","properties":{"name":{"type":"string","description":"job name"},"type":{"$ref":"#/components/schemas/RestoreJobType"},"description":{"type":"string","description":"job description"}}},"RestoreJobType":{"type":"string","enum":["FIELDS","FILES","RECORDS","METADATA"]},"RestoreJobStatePostResponse":{"type":"object","description":"Save page data response","properties":{"job_id":{"type":"integer","format":"int32","description":"restore job id","example":20},"success":{"type":"boolean","description":"Boolean operation status","example":true},"message":{"type":"string","description":"Result message","example":"Ok"}}},"RestoreJobTargetPostRequest":{"type":"object","description":"Source and target org details","properties":{"other_org":{"type":"boolean","description":"set 'true' when source and target orgs are different"},"source_db":{"type":"integer","format":"int32","description":"database connection Id","example":1},"target_sf":{"type":"integer","format":"int32","description":"target organization Id","example":2}},"required":["other_org","source_db","target_sf"]},"RestoreJobOptionsDto":{"type":"object","description":"General settings of the restore job","properties":{"restore_xmx":{"type":"integer","format":"int32","description":"setting for restore job RAM resources in MB","example":512},"overwrite_records":{"type":"boolean","description":"set 'true' to override field values of existing record with not blank value from backup","example":false},"overwrite_records_with_nulls":{"type":"boolean","description":"set 'true' to allow overwrite with blank field value from backup","example":false},"disable_automation":{"type":"boolean","description":"set 'true' to automatically disable automation on target org for VBSF user","example":true},"disable_automation_rollback":{"type":"boolean","description":"set 'true' to roll back changes made to disable automation","example":true},"fields_override":{"type":"array","description":"set of rules to override field values during restore","items":{"$ref":"#/components/schemas/RestoreJobOptionsDto_fields_override_inner"}},"fields_mapping":{"type":"array","description":"mapping rules to restore value of one field into another","items":{"$ref":"#/components/schemas/RestoreJobOptionsDto_fields_mapping_inner"}}}},"RestoreJobOptionsDto_fields_mapping_inner":{"type":"object","description":"field mapping rule","properties":{"number":{"type":"integer","format":"int32","description":"rule number","example":1},"source":{"type":"string","description":"field API name 'from'","example":"email"},"target":{"type":"string","description":"field API name 'to'","example":"recovery_email__c"},"object":{"type":"string","description":"Object name","example":"Account"}},"required":["number"]},"RestoreJobOptionsDto_fields_override_inner":{"type":"object","description":"field override rules","properties":{"number":{"type":"integer","format":"int32","description":"rule number","example":1},"field":{"type":"string","description":"field API name","example":"OwnerId"},"value":{"type":"string","description":"new field value","example":"00533000006xfXcAAQ"},"object":{"type":"string","description":"Object API name","example":"Account"}},"required":["number"]},"HierarchyOverwriteEnum":{"type":"string","enum":["parent_lookup","all_fields","all_not_nulls","none"]},"HierarchyStopEnum":{"type":"string","enum":["present","parent_lookup","all_fields","never"]},"RestoreJobHierarchyDto":{"type":"object","description":"Dto for hierarchy page state","properties":{"enabled":{"type":"boolean","description":"Should hierarchy be restored","example":true},"parent":{"$ref":"#/components/schemas/RestoreJobHierarchyDtoParent"},"child":{"$ref":"#/components/schemas/RestoreJobHierarchyDtoChild"},"custom":{"$ref":"#/components/schemas/RestoreJobHierarchyDtoCustom"}}},"RestoreJobHierarchyDtoChild":{"type":"object","properties":{"depth":{"type":"integer","format":"int32"},"exclude":{"type":"array","items":{"type":"string"}},"overwrite":{"$ref":"#/components/schemas/HierarchyOverwriteEnum"},"stop":{"$ref":"#/components/schemas/HierarchyStopEnum"}}},"RestoreJobHierarchyDtoCustom":{"type":"object","properties":{"records":{"type":"array","description":"list of hierarchy records","items":{"$ref":"#/components/schemas/RestoreJobHierarchyDto_custom_records_inner"}}}},"RestoreJobHierarchyDtoParent":{"type":"object","properties":{"depth":{"type":"integer","format":"int32"}}},"RestoreJobHierarchyDto_custom_records_inner":{"type":"object","description":"hierarchy record data","properties":{"record_id":{"type":"string","description":"salesforce record id","example":"18 SF id"},"tree_path":{"type":"array","description":"selected hierarchy ids","items":{"type":"array","items":{"type":"string"}}}},"required":["record_id"]},"RestoreJobFilesDto":{"type":"object","description":"Settings for related files restore","properties":{"restore_files":{"type":"boolean","description":"is restore of related files enabled","example":true},"filters":{"type":"array","description":"filtering criteria to exclude files from restore","items":{"$ref":"#/components/schemas/FieldFilter"}},"displayed_fields":{"type":"array","description":"object fields to be returned in the response","example":["Id","Name"],"items":{"type":"string"}}}},"RestoreJobFieldsDto":{"type":"object","description":"List of fields to restore","properties":{"selected_fields":{"type":"array","description":"list of selected fields","example":["Name","Description"],"items":{"type":"string"}}}},"RestoreJobDataDto":{"type":"object","description":"Rules to select root records for restore","properties":{"object_api_name":{"type":"string","description":"object API name","example":"object_name__c"},"selected_all":{"type":"boolean","description":"set 'true' to include records found by filter, 'false' to list records by Id","example":false},"only_history":{"type":"boolean","description":"set 'true' to search among historical versions","example":true},"displayed_fields":{"type":"array","description":"list of displayed fields","items":{"type":"string"}},"sort_by":{"type":"string"},"sort_asc":{"type":"boolean"},"filters_logic":{"type":"string","description":"binary logic for provided filters","example":"1 AND 2 OR 3"},"filters":{"type":"array","description":"filtering criteria for records search","items":{"$ref":"#/components/schemas/FieldFilter"}},"parent_object":{"type":"string","description":"specify API name of a parent of a file object. Required for 'FILES' restore job  if root records for restore are specified by filter applied to parent object  (for ex. Attachments of specific Account) ","example":"Account"},"records":{"type":"array","description":"list of records selected for restore","items":{"$ref":"#/components/schemas/RestoreJobDataDto_records_inner"}},"exclude_list":{"type":"array","description":"list of records excluded from restore, populate when selecting records by filter","example":"001DD20014lIf2YANT","items":{"type":"string"}},"mask_template_id":{"type":"integer","format":"int32"}}},"RestoreJobDataDto_records_inner":{"type":"object","description":"record description","properties":{"record_id":{"type":"string","description":"record Id","example":"001DD20014lIf2YANT"},"version_id":{"type":"string","description":"record version Id","example":"001DD20014lIf2YANT"},"timestamp":{"type":"string","format":"date-time","description":"record version timestamp"},"latest":{"type":"boolean","description":"is latest record version","example":false},"record_name":{"type":"string","description":"record Name field value, if available","example":"Test record"},"vsf_restore_point":{"type":"integer","format":"int32","description":"specific record version selected for restore","example":123}},"required":["record_id"]},"ObjectPostResponse":{"type":"object","description":"List of found records","properties":{"result":{"type":"array","description":"array of found records","items":{"type":"array","items":{}}},"page":{"$ref":"#/components/schemas/Page"}}},"Page":{"type":"object","properties":{"pageable":{"$ref":"#/components/schemas/PagePageable"},"total_pages":{"type":"integer","format":"int32","example":1},"total_elements":{"type":"integer","format":"int32","example":100},"last":{"type":"boolean","example":false},"first":{"type":"boolean","example":true},"number_of_elements":{"type":"integer","format":"int32","example":100},"sort":{"$ref":"#/components/schemas/PageSort"},"number":{"type":"integer","format":"int32","example":0},"size":{"type":"integer","format":"int32","example":265},"empty":{"type":"boolean","example":false}},"required":["empty","first","last","number","number_of_elements","pageable","size","sort","total_elements","total_pages"]},"PagePageable":{"type":"object","properties":{"sort":{"$ref":"#/components/schemas/PagePageableSort"},"page_size":{"type":"integer","format":"int32","example":256},"page_number":{"type":"integer","format":"int32","example":0},"offset":{"type":"integer","format":"int32","example":0},"paged":{"type":"boolean","example":true},"unpaged":{"type":"boolean","example":false}}},"PagePageableSort":{"type":"object","properties":{"sorted":{"type":"boolean","example":true},"unsorted":{"type":"boolean","example":false},"empty":{"type":"boolean","example":false}}},"PageSort":{"type":"object","properties":{"sorted":{"type":"boolean","example":true},"unsorted":{"type":"boolean","example":false},"empty":{"type":"boolean","example":false}}},"ObjectPostRequest":{"type":"object","properties":{"filters_logic":{"type":"string","description":"binary logic for provided filters","example":"1 AND 2 OR 3"},"filters":{"type":"array","description":"filtering criteria for records search","items":{"$ref":"#/components/schemas/FieldFilter"}},"fields":{"type":"array","description":"object fields to be returned in the response","example":["Id","Name","SystemModstamp","vsf_restore_point"],"items":{"type":"string"},"maxItems":2147483647,"minItems":1}},"required":["fields","filters"]},"RestoreJobClonePostRequest":{"type":"object","properties":{"name":{"type":"string","description":"name of new job"}}},"TestProxyConfigurationPostResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}}},"ProxyConfigurationRequestResponse":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/TestProxyConfigurationType"},"http.proxyHost":{"type":"string","description":"HTTP Proxy host","example":"proxyhost.local"},"http.proxyPort":{"type":"integer","format":"int32","description":"HTTP Proxy port. Default 80","example":3128},"http.proxyUser":{"type":"string","description":"HTTP Proxy username"},"http.proxyPassword":{"type":"string","description":"HTTP Proxy password"},"https.proxyHost":{"type":"string","description":"HTTPS Proxy host","example":"secureproxyhost.local"},"https.proxyPort":{"type":"integer","format":"int32","description":"HTTPS Proxy port. Default 443","example":3128},"https.proxyUser":{"type":"string","description":"HTTPS Proxy username"},"https.proxyPassword":{"type":"string","description":"HTTPS Proxy password"},"javax.net.ssl.trustStore":{"type":"string","description":"Certificate trust store location"},"javax.net.ssl.trustStorePassword":{"type":"string","description":"Certificate trust store password"},"http.nonProxyHosts":{"type":"string","description":"Hosts which should not be proxied.","example":"localhost|10.*.*.*|*.example.com"},"http.agent":{"type":"string","description":"User-Agent header"},"useSystemProxies":{"type":"boolean","description":"If connection should use OS configured proxy servers"}},"required":["type"]},"TestProxyConfigurationType":{"type":"string","enum":["https"]},"OrganizationPostResponse":{"type":"object","description":"Details of registered organization","properties":{"company_id":{"type":"string","format":"uuid","description":"company id","example":"550e8400-e29b-41d4-a716-446655440000"},"company_name":{"type":"string","description":"company name","example":"My company"},"name":{"type":"string","description":"Salesforce organization alias","example":"My organization"},"user_name":{"type":"string","description":"username used to access organization","example":"user@company.com"},"sf_instance_id":{"type":"integer","format":"int32","description":"organization Id","example":1},"user_status":{"$ref":"#/components/schemas/UserStatus"},"sf_org_type":{"type":"string","description":"Salesforce organization edition","example":"Enterprise Edition"}}},"UserStatus":{"type":"string","enum":["USER_CREATED","USER_UPDATED"]},"OrganizationPostRequest":{"type":"object","properties":{"name":{"type":"string","description":"Salesforce organization alias","example":"My organization"},"company_name":{"type":"string","description":"name of the existing company; leave empty to auto create new company","example":"My company"}}},"OrganizationDraftPostResponse":{"type":"object","properties":{"authorization_url":{"type":"string","description":"authorization URL for user to authorize in Salesforce","example":"https://company-name.salesforce.com/services/oauth2/authorize?client_id=CLIENT-ID&redirect_uri=https://REDIRECT-URI&response_type=code&state=STATE&prompt=login"},"draft_uuid":{"type":"string","format":"uuid","description":"UUID representing the draft of future organization record","example":"550e8400-e29b-41d4-a716-446655440000"}}},"OrganizationEditDraftPostRequest":{"type":"object","properties":{"client_id":{"type":"string","description":"Salesforce connected app client ID (optional - if not provided, uses existing value from DB)","example":"3MVG9..."},"client_secret":{"type":"string","description":"Salesforce connected app client secret (optional - if not provided, uses existing value from DB)","example":"1234567890ABCDEF"},"sf_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sf_login_url":{"type":"string","description":"oauth2 login url; required only when sf_login_type is 'custom' (optional - if not provided, uses existing value from DB). Must be provided together with sf_login_type or not at all.","example":"https://company-name.my.salesforce.com"},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows."}}},"OrganizationReauthorizationPostResponse":{"type":"object","properties":{"authorization_url":{"type":"string","description":"organization authorization URL","example":"https://company-name.salesforce.com/services/oauth2/authorize?client_id=CLIENT-ID&redirect_uri=https://REDIRECT-URI&response_type=code&state=STATE&prompt=login"}}},"OrganizationDraftPostRequest":{"type":"object","properties":{"client_id":{"type":"string","description":"Salesforce connected app client ID","example":"3MVG9..."},"client_secret":{"type":"string","description":"Salesforce connected app client secret","example":"1234567890ABCDEF"},"sf_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sf_login_url":{"type":"string","description":"oauth2 login url; required only when sf_login_type is 'custom'","example":"https://company-name.my.salesforce.com"},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows."}},"required":["client_id","client_secret","sf_login_type"]},"OrganizationDraftReauthorizePostRequest":{"type":"object","description":"Request body for reauthorizing a draft organization. All fields are optional - any missing fields will be taken from the existing draft values. ","properties":{"client_id":{"type":"string","description":"Salesforce connected app client ID (optional - if not provided, uses existing draft value)","example":"3MVG9..."},"client_secret":{"type":"string","description":"Salesforce connected app client secret (optional - if not provided, uses existing draft value)","example":"1234567890ABCDEF"},"sf_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sf_login_url":{"type":"string","description":"oauth2 login url; required only when sf_login_type is 'custom'","example":"https://company-name.my.salesforce.com"},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows."}}},"OrganizationDraftCompanyPostRequest":{"type":"object","properties":{"company_external_id":{"type":"string","format":"uuid","description":"External ID of the company to link the draft organization to","example":"550e8400-e29b-41d4-a716-446655440000"}},"required":["company_external_id"]},"OrganizationAuthorizationPostResponse":{"type":"object","properties":{"authorization_url":{"type":"string","description":"organization authorization URL","example":"https://company-name.salesforce.com/services/oauth2/authorize?client_id=CLIENT-ID&redirect_uri=https://REDIRECT-URI&response_type=code&state=STATE&prompt=login"}}},"OrganizationAuthorizationPostRequest":{"type":"object","properties":{"sf_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sf_login_url":{"type":"string","description":"oauth2 login url; required only for custom domain","example":"https://company-name.my.salesforce.com"}},"required":["sf_login_type"]},"ObjectLatestPostResponse":{"type":"object","description":"List of found records; the latest record version taking into account filtering criteria","properties":{"latest":{"type":"array","description":"search result when looking among lastest (by systemModstamp) version of records","items":{"type":"object","additionalProperties":{}}},"history":{"type":"array","description":"search result when looking among historical (by systemModstamp) versions of records","items":{"type":"object","additionalProperties":{}}},"page":{"$ref":"#/components/schemas/Page"}}},"HierarchyTreeDto":{"type":"object","description":"Hierarchy node description","properties":{"object_name":{"type":"string","description":"object API name","example":"Account"},"object_label":{"type":"string","description":"object label","example":"Account"},"object_count":{"type":"integer","format":"int32","description":"number of records found for hierarchy node","example":1},"hierarchy_id":{"type":"array","description":"path to the node","example":"Account","items":{"type":"string"}},"hierarchy":{"type":"array","description":"dependent hierarchy nodes","items":{"$ref":"#/components/schemas/HierarchyTreeDto"}}}},"HierarchyTreePostRequest":{"type":"object","properties":{"hierarchy_id":{"type":"array","description":"path of the node from which to build a hierarchy","items":{"type":"string"}}}},"HierarchyDataDto":{"type":"object","description":"Node record description","properties":{"id":{"type":"string","description":"record Id","example":"8008k300078sjAcAAK"},"last_modified_date":{"type":"string","description":"last modified date","example":"2023-04-26T08:12:52.000Z"},"is_deleted":{"type":"boolean","description":"is deleted flag"},"created_date":{"type":"string","description":"created date","example":"2023-04-26T08:12:52.000Z"},"name":{"type":"string","description":"record Name, if available"},"system_modstamp":{"type":"string","description":"system_modstamp for record","example":"2023-04-26T08:12:52.000Z"},"vsf_restore_point":{"type":"integer","format":"int32","description":"record restore point, if searching by root record restore point","example":111},"latest":{"type":"boolean","description":"latest version indicator, if searching by latest version of root record"},"files":{"type":"integer","format":"int32","description":"attachment count"}}},"HierarchyDataPostResponse":{"type":"object","properties":{"object_id":{"type":"string","description":"root record Id","example":"001DD20014lIf2YANT"},"hierarchy_id":{"type":"array","description":"path to the node","example":["Account","Contract"],"items":{"type":"string"}},"data":{"type":"array","items":{"$ref":"#/components/schemas/HierarchyDataDto"}},"page":{"$ref":"#/components/schemas/Page"}}},"HierarchyTreeDataPostRequest":{"type":"object","properties":{"hierarchy_id":{"type":"array","description":"path to the node","example":["Account","Contact"],"items":{"type":"string"}}},"required":["hierarchy_id"]},"NotificationChannelPostRequestProperties":{"type":"object","description":"connection properties; for type 'EMAIL' an existing IDP connection can be used","properties":{"name":{"type":"string","description":"channel name"},"server":{"type":"string","description":"server url","example":"test.server.com"},"port":{"type":"integer","format":"int32","description":"server port","example":25},"auth":{"type":"boolean","description":"is authentication required","example":false},"user":{"type":"string","description":"server auth user"},"secret":{"type":"string","description":"server secret"},"timeout":{"type":"integer","format":"int32","description":"server timeout","example":1000},"ssl":{"type":"boolean"},"sender":{"type":"string","description":"email address 'FROM', if non-default value is provided","example":"user@company.com"},"idp_id":{"type":"integer","format":"int32","description":"IDP connection Id, if an existing connection is used","example":123}}},"NotificationPropertiesPostRequest":{"type":"object","description":"System notification channel details","properties":{"type":{"$ref":"#/components/schemas/NotificationChannelType"},"company_id":{"type":"string","format":"uuid","description":"company Id"},"enabled":{"type":"boolean","description":"is notification channel enabled"},"properties":{"$ref":"#/components/schemas/NotificationChannelPostRequestProperties"}},"required":["properties","type"]},"NotificationChannelTestMessagePostRequest":{"type":"object","properties":{"type":{"$ref":"#/components/schemas/TestNotificationChannelType"},"properties":{"$ref":"#/components/schemas/NotificationChannelTestMessagePostRequestProperties"}},"required":["properties","type"]},"NotificationChannelTestMessagePostRequestProperties":{"type":"object","description":"connection details","properties":{"server":{"type":"string","description":"server url","example":"test.server.com"},"port":{"type":"integer","format":"int32","description":"server port","example":25},"auth":{"type":"boolean","description":"is authentication required","example":false},"user":{"type":"string","description":"server auth user"},"secret":{"type":"string","description":"server secret"},"timeout":{"type":"integer","format":"int32","description":"server timeout","example":1000},"ssl":{"type":"boolean","example":false},"sender":{"type":"string","description":"email address 'FROM', if non-default value is provided","example":"user@company.com"},"recipient":{"type":"string","description":"email address 'TO","example":"user@company.com"},"idp_id":{"type":"integer","format":"int32","description":"IDP connection Id, if an existing connection is used","example":123},"idp_access_token":{"type":"string","description":"IDP access token"}}},"TestNotificationChannelType":{"type":"string","enum":["EMAIL","SLACK"]},"ObjectMetadataPostResponse":{"type":"object","description":"the metadata objects","properties":{"result":{"type":"array","items":{"type":"object","additionalProperties":{}}},"page":{"$ref":"#/components/schemas/Page"}}},"ObjectMetadataHistoryPostRequest":{"type":"object","properties":{"commit_hash_1":{"type":"string","description":"hash of the first commit date"},"commit_hash_2":{"type":"string","description":"hash of the second commit date"}},"required":["commit_hash_1","commit_hash_2"]},"ObjectMetadataHistoryPostResponseInner":{"type":"object","properties":{"old_path":{"type":"string","description":"original path to a file","example":"src/objects/Account.object"},"new_path":{"type":"string","description":"new path to a file","example":"src/objects/Account.object"},"a_mode":{"type":"string","example":"100644"},"b_mode":{"type":"string","example":"100644"},"new_file":{"type":"boolean","description":"is a new file"},"renamed_file":{"type":"boolean","description":"is file name changed"},"deleted_file":{"type":"boolean","description":"is file deleted"},"diff":{"type":"string","description":"result of comparison between specified commit dates"}}},"CreateDownloadResponse":{"type":"object","properties":{"link":{"type":"string","description":"link to download a file","example":"https://localhost/api/v1/download?token=XXXXXXXXXXXXXXXXXXXX"},"ttl_sec":{"type":"integer","format":"int64","description":"link time-to-live in seconds","example":3600}}},"ObjectMetadataFilePostRequest":{"type":"object","description":"List of metadata item names","properties":{"type_name":{"type":"string","description":"metadata object type name","example":"Profile"},"object_name":{"type":"string","description":"metadata item name","example":"MarketingProfile"},"commit_hash":{"type":"string","description":"commit hash"}},"required":["object_name","type_name"]},"IdpEmailPropertiesPostRequest":{"type":"object","description":"possibility of using IDP to send email notifications","properties":{"enabled":{"type":"boolean","description":"is IDP connection enabled for sending email notifications"},"verified":{"type":"boolean","description":"is IDP connection verified"}},"required":["enabled"]},"IdpPostRequest":{"type":"object","description":"Identity provider details","properties":{"provider":{"$ref":"#/components/schemas/IdpProvider"},"name":{"type":"string","description":"identity provider name","example":"Salesforce"},"properties":{"$ref":"#/components/schemas/IdpPropertiesPostRequest"},"salesforce":{"$ref":"#/components/schemas/IdpSalesforcePropertiesPostRequest"},"email":{"$ref":"#/components/schemas/IdpEmailPropertiesPostRequest"},"sso":{"$ref":"#/components/schemas/IdpSsoPropertiesPostRequest"}},"required":["properties","provider"]},"IdpPropertiesPostRequest":{"type":"object","description":"connection properties","properties":{"client_id":{"type":"string","description":"IDP client Id"},"client_secret":{"type":"string","description":"IDP client secret"},"tenant_id":{"type":"string","description":"IDP tenant Id, if applicable"}},"required":["client_id","client_secret"]},"IdpSalesforcePropertiesPostRequest":{"type":"object","properties":{"sso_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sso_login_allowed":{"type":"array","items":{"type":"string"}},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows."}},"required":["sso_login_type"]},"IdpSsoPropertiesPostRequest":{"type":"object","description":"possibility of using IDP for SSO","properties":{"enabled":{"type":"boolean","description":"is IDP connection enabled for SSO"},"verified":{"type":"boolean","description":"is IDP connection verified"}},"required":["enabled"]},"RedirectUrlResponse":{"type":"object","properties":{"redirect_url":{"type":"string","description":"redirect URL","example":"http://localhost:3000"}}},"IdpForVerification":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"identity provider Id"},"provider":{"$ref":"#/components/schemas/IdpProvider"},"properties":{"$ref":"#/components/schemas/IdpVerificationProperties"},"salesforce":{"$ref":"#/components/schemas/IdpVerificationSalesforceProperties"}},"required":["id","provider"]},"IdpStartVerificationPostRequest":{"type":"object","description":"IDP connection verification parameters","properties":{"idp":{"$ref":"#/components/schemas/IdpForVerification"},"verify":{"$ref":"#/components/schemas/VerifyEnum","description":"verification purpose"}},"required":["idp","verify"]},"IdpVerificationProperties":{"type":"object","description":"connection properties","properties":{"client_id":{"type":"string","description":"IDP client Id"},"client_secret":{"type":"string","description":"IDP client secret"},"tenant_id":{"type":"string","description":"IDP tenant Id, if applicable"}}},"IdpVerificationSalesforceProperties":{"type":"object","properties":{"sf_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sf_login_url":{"type":"string","description":"oauth2 login url; required only for custom domain","example":"https://company-name.my.salesforce.com"},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows."}},"required":["sf_login_type"]},"VerifyEnum":{"type":"string","enum":["connect","sso","email"]},"IdpContinueVerificationPostRequest":{"type":"object","properties":{"code":{"type":"string","description":"oauth authorization code"},"state":{"type":"string","description":"application state marker"}},"required":["code","state"]},"SearchIdpUsersByIdpIdPostRequest":{"type":"object","properties":{"idp_user_name":{"type":"string","description":"username in IDP system; search by condition 'contains'","example":"user.name"}}},"IdpUserFromSearch":{"type":"object","description":"IDP user or group details","properties":{"external_id":{"type":"string","description":"user or group Id in IDP system","example":"00533000006xfXcAAQ"},"uniqname":{"type":"string","description":"username in IDP system","example":"user@company.com"},"firstname":{"type":"string","description":"user first name"},"lastname":{"type":"string","description":"user last name"},"email":{"type":"string","description":"user or a group email address","example":"user@company.com"},"sso_login_url":{"type":"string","description":"IDP domain used to authenticate user or a group","example":"https://company-name.my.salesforce.com"},"belongs_to_sandbox_org":{"type":"boolean","description":"is user or a group belong to sandbox organization"},"type":{"$ref":"#/components/schemas/IdpUserType"}}},"IdpUserType":{"type":"string","enum":["group","user"]},"SearchIdpUsersPostRequest":{"type":"object","properties":{"idp_access_token":{"type":"string","description":"IDP access token"},"idp_user_name":{"type":"string","description":"username in IDP system; search by condition 'contains'","example":"user.name"}},"required":["idp_access_token"]},"FilesPostResponse":{"type":"object","description":"List of found file object records","properties":{"result":{"type":"array","description":"found salesforce file object fields","items":{"type":"object","additionalProperties":{}}},"page":{"$ref":"#/components/schemas/Page"}}},"FilesDownloadPostRequest":{"type":"object","description":"List of file record Ids","properties":{"ids":{"type":"array","items":{"type":"string"},"maxItems":2147483647,"minItems":1}},"required":["ids"]},"ContentVersionResponse":{"type":"object","properties":{"id":{"type":"string","description":"ContentVersion Id","example":"0688d0000dTefsrBAF"},"content_document_id":{"type":"string","description":"ContentDocument Id","example":"0698G0000sQfTjfAAV"},"versionnumber":{"type":"string","description":"ContentVersion version number","example":"1"},"is_latest":{"type":"boolean","description":"is latest version of the document","example":true},"systemmodstamp":{"type":"string","format":"date-time","description":"ContentVersion modified date","example":"2024-03-26T21:17:58Z"},"title":{"type":"string","description":"title of the document","example":"Document title"},"content_size":{"type":"integer","format":"int32","description":"size of the document in bytes","example":373},"content_size_long":{"type":"integer","format":"int64","description":"size of the document in bytes","example":373},"createddate":{"type":"string","format":"date-time","description":"ContentVersion created date","example":"2024-03-26T21:17:58Z"}}},"FileContentVersionHistoryResponse":{"type":"object","description":"ContentVersion records found in the backup, and latest ContentVersion on target organization","properties":{"history":{"type":"array","items":{"$ref":"#/components/schemas/ContentVersionResponse"}},"production":{"$ref":"#/components/schemas/ContentVersionResponse"},"page":{"$ref":"#/components/schemas/Page"}}},"SalesforceDatabasePostResponse":{"type":"object","description":"database connection Id","properties":{"id":{"type":"integer","format":"int32","example":1}}},"SalesforceDatabasePostRequest":{"type":"object","properties":{"name":{"type":"string","description":"database connection label","example":"My database"},"company_id":{"type":"string","format":"uuid","description":"company Id"},"db_name":{"type":"string","description":"database name","example":"my_database"},"url":{"type":"string","description":"database server","example":"localhost"},"port":{"type":"integer","format":"int32","description":"database port","example":5432},"user":{"type":"string","description":"database userid","example":"vbsf"},"pwd":{"type":"string","description":"database password"}},"required":["port","pwd","url","user"]},"SalesforceDatabaseClonePostRequest":{"type":"object","properties":{"name":{"type":"string","description":"database connection label","example":"My database"},"db_name":{"type":"string","description":"database name","example":"my_database"},"company_id":{"type":"string","format":"uuid","description":"company Id"}},"required":["db_name"]},"SalesforceDatabaseDefaultPostRequest":{"type":"object","properties":{"db_name":{"type":"string","description":"database name","example":"my_database"}}},"ApplicationDatabasePostRequest":{"type":"object","description":"configuration database","properties":{"db_name":{"type":"string","description":"database name","example":"config_db"},"url":{"type":"string","description":"database server","example":"localhost"},"port":{"type":"integer","format":"int32","description":"database port","example":5432},"user":{"type":"string","description":"database userid","example":"vbsf"},"pwd":{"type":"string","description":"database password"}},"required":["port","pwd","url","user"]},"ApplicationDatabaseDefaultPostRequest":{"type":"object","description":"configuration database","properties":{"db_name":{"type":"string","description":"database name","example":"config_db"}}},"CompanyPostResponse":{"type":"object","properties":{"company_id":{"type":"string","format":"uuid","description":"created company external id"},"success":{"type":"boolean","description":"determine if operation was successful"},"message":{"type":"string","description":"Result message","example":"Ok"}},"required":["company_id"]},"AwsCloudProviderPostRequest":{"type":"object","properties":{"credentials":{"$ref":"#/components/schemas/AwsCloudProviderCredentials"},"company_id":{"type":"string","format":"uuid","description":"company Id"},"description":{"type":"string","description":"connection record description","example":"description provided by user"}},"required":["company_id","credentials"]},"DescribedAwsCloudProviderKey":{"type":"object","description":"Metadata information about AWS key","properties":{"key_metadata":{"$ref":"#/components/schemas/DescribedAwsCloudProviderKeyKeyMetadata"}},"required":["key_metadata"]},"DescribedAwsCloudProviderKeyKeyMetadata":{"type":"object","properties":{"arn":{"type":"string"},"aws_account_id":{"type":"string"},"cloud_hsm_cluster_id":{"type":"string"},"creation_date":{"type":"integer","format":"int64"},"customer_master_key_spec":{"type":"string"},"custom_key_store_id":{"type":"string"},"deletion_date":{"type":"integer","format":"int64"},"description":{"type":"string"},"enabled":{"type":"boolean"},"encryption_algorithms":{"type":"array","items":{"type":"string"}},"expiration_model":{"type":"string"},"key_id":{"type":"string"},"key_manager":{"type":"string"},"key_spec":{"type":"string"},"key_state":{"type":"string"},"key_usage":{"type":"string"},"mac_algorithms":{"type":"array","items":{"type":"string"}},"multi_region":{"type":"boolean"},"multi_region_configuration":{"$ref":"#/components/schemas/DescribedAwsCloudProviderKeyKeyMetadataMultiRegionConfiguration"},"origin":{"type":"string"},"pending_deletion_window_in_days":{"type":"integer","format":"int32"},"signing_algorithms":{"type":"array","items":{"type":"string"}},"valid_to":{"type":"integer","format":"int64"},"xks_key_configuration":{"$ref":"#/components/schemas/DescribedAwsCloudProviderKeyKeyMetadataXksKeyConfiguration"}}},"DescribedAwsCloudProviderKeyKeyMetadataMultiRegionConfiguration":{"type":"object","properties":{"multi_region_key_type":{"type":"string"},"primary_key":{"$ref":"#/components/schemas/DescribedAwsCloudProviderKeyKeyMetadataMultiRegionConfigurationPrimaryKey"},"replica_keys":{"type":"array","items":{"$ref":"#/components/schemas/DescribedAwsCloudProviderKeyKeyMetadataMultiRegionConfigurationPrimaryKey"}}}},"DescribedAwsCloudProviderKeyKeyMetadataMultiRegionConfigurationPrimaryKey":{"type":"object","properties":{"arn":{"type":"string"},"region":{"type":"string"}}},"DescribedAwsCloudProviderKeyKeyMetadataXksKeyConfiguration":{"type":"object","properties":{"id":{"type":"string"}}},"AwsCloudProviderKeyPostRequest":{"type":"object","properties":{"region":{"type":"string","example":"ap-east-1"}},"required":["region"]},"DescribeAwsCloudProviderKeyPostRequest":{"type":"object","properties":{"key_arn":{"type":"string","example":"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab","maxLength":2147483647,"minLength":1}},"required":["key_arn"]},"AwsCloudProviderKeyAliasPostRequest":{"type":"object","properties":{"key_arn":{"type":"string","example":"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab","maxLength":2147483647,"minLength":1},"alias":{"type":"string","example":"test-key","maxLength":2147483647,"minLength":1}},"required":["alias","key_arn"]},"VerifyAwsCloudProviderPostRequest":{"type":"object","properties":{"credentials":{"$ref":"#/components/schemas/AwsCloudProviderCredentials"}},"required":["credentials"]},"BackupJobReloadFieldsPostRequest":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"string"}},"start_time":{"type":"string","format":"date-time","description":"object changed in the interval starting at the specified moment"},"end_time":{"type":"string","format":"date-time","description":"object changed in the interval ending at the specified moment"},"object":{"type":"string","description":"object name","example":"Account"}},"required":["object"]},"ArchiveJobPostRequest":{"type":"object","description":"Data archival policy details","properties":{"name":{"type":"string","description":"data archival policy name","example":"Test"},"description":{"type":"string","description":"data archival policy description","example":"Test data archival policy"},"state":{"$ref":"#/components/schemas/ArchiveJobState"},"object_api_name":{"type":"string","description":"root object API name","example":"Account"},"user_consent_list":{"type":"array","description":"list of not backed-up child objects user agreed to delete permanently","example":["Child_Object_1__c","Child_Object_2__c"],"items":{"type":"string"}},"schedule_id":{"type":"integer","format":"int32","description":"data archival policy execution schedule Id","example":1},"config":{"$ref":"#/components/schemas/ArchiveJobConfig"}},"required":["config","name","object_api_name","schedule_id","state"]},"ArchiveJobObjectsCountPostResponse":{"type":"object","properties":{"count":{"type":"integer","format":"int64","example":100}},"required":["count"]},"ArchiveJobObjectsCountPostRequest":{"type":"object","description":"Criteria to search for root records for archival","properties":{"object_api_name":{"type":"string","description":"root object API name","example":"Account"},"filters_logic":{"type":"string","description":"binary logic for provided filters","example":"1 AND 2 OR 3"},"filters":{"type":"array","items":{"$ref":"#/components/schemas/FieldFilter"}}}},"AdminPassword":{"type":"object","description":"Local admin password","properties":{"password":{"type":"string"}},"required":["password"]},"OrganizationPatchRequest":{"type":"object","description":"list of organizations to be moved to specified company","properties":{"company_id":{"type":"string","format":"uuid","description":"company Id"},"sf_instance_id":{"type":"array","items":{"type":"integer","format":"int32"}}},"required":["company_id","sf_instance_id"]},"OrganizationByIdPatchRequest":{"type":"object","description":"dto for updating salesforce entity","properties":{"name":{"type":"string","description":"new Salesforce organization alias value","example":"My organization"}}},"ApplicationDatabasePatchRequest":{"type":"object","description":"configuration database","properties":{"user":{"type":"string","description":"database userid","example":"vbsf"},"pwd":{"type":"string","description":"database password"}},"required":["pwd","user"]},"InstallationType":{"type":"string","enum":["standalone","aws_ecs","docker","k8s"]},"VersionGetResponse":{"type":"object","properties":{"build_version":{"type":"string","example":"2.0.0.3955"},"backend_version":{"type":"string","example":"2.0.0.3955"},"installation_type":{"$ref":"#/components/schemas/InstallationType"}}},"UpdaterGetTokenResponse":{"type":"object","properties":{"url":{"type":"string","description":"updater url"}}},"AppStatus":{"type":"string","enum":["STARTING","UP","DOWN","DB_ERROR","DB_UNSUPPORTED","KEY_ERROR"]},"StatusGetResponse":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/AppStatus"},"message":{"type":"string"},"logout_timeout":{"type":"integer","format":"int32","example":3600}}},"CompanyScheduleArchiveJob":{"type":"object","properties":{"archive_job_id":{"type":"integer","format":"int32","description":"archive policy Id","example":1},"archive_job_name":{"type":"string","description":"archive policy name","example":"archive-policy-1"}}},"CompanyScheduleBackupJob":{"type":"object","properties":{"backup_job_id":{"type":"integer","format":"int32","description":"backup policy Id","example":1},"backup_job_name":{"type":"string","description":"backup policy name","example":"backup-policy-1"},"parent_job_name":{"type":"string","description":"parent policy Id for an object with custom backup schedule"}}},"CompanyScheduleGetResponse":{"type":"object","description":"Schedule details","properties":{"id":{"type":"integer","format":"int32","description":"schedule Id","example":123},"name":{"type":"string","description":"schedule name","example":"Custom schedule name"},"schedule":{"type":"string","description":"cron expression","example":"0 0 0/23 * * ?"},"timezone":{"type":"string","description":"schedule timezone","example":"US/Central"},"vsf_created_date":{"type":"string","format":"date-time","description":"schedule created date"},"jobs":{"type":"array","items":{"$ref":"#/components/schemas/CompanyScheduleBackupJob"}},"archive_jobs":{"type":"array","description":"list of jobs which use the schedule","items":{"$ref":"#/components/schemas/CompanyScheduleArchiveJob"}},"recurring":{"type":"boolean","description":"is schedule recurring","example":true},"default":{"type":"boolean","description":"is the schedule default and available to all companies","example":false,"readOnly":true}}},"CompanyScheduleTimezonesGetResponse":{"type":"object","description":"Timezone description","properties":{"timezone":{"type":"string","description":"timezone Id","example":"US/Central"},"offset":{"type":"string","description":"timezone offset","example":"-0600"},"text":{"type":"string","description":"timezone name","example":"(UTC-6:00) Central Time (US & Canada)"}}},"ApplicationRoleV2":{"type":"object","description":"Application role description","properties":{"id":{"type":"integer","format":"int32","description":"role Id","example":3},"code":{"$ref":"#/components/schemas/CodeEnum","description":"role code","example":"backup_operator"},"name":{"type":"string","description":"role name","example":"Backup operator"},"system":{"type":"boolean","description":"is standard application role","example":true},"description":{"type":"string","description":"role description"}},"required":["code"]},"CodeEnum":{"type":"string","enum":["no_access","administrator","backup_operator","restore_operator","viewer"]},"DataMaskTemplateListResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskTemplateGetResponse"}},"page":{"$ref":"#/components/schemas/Page"}}},"DataMaskMethodInformation":{"type":"object","description":"data mask method","properties":{"name":{"type":"string","description":"data mask template name","example":"RandomAlphabetic"},"label":{"type":"string"},"parameters":{"type":"array","items":{"$ref":"#/components/schemas/DataMaskMethodInformation_parameters_inner"}},"applicable_sf_types":{"type":"array","items":{"type":"string"}},"result_type":{"$ref":"#/components/schemas/FieldJsonType"},"result_example":{}},"required":["applicable_sf_types","label","name","result_example","result_type"]},"DataMaskMethodInformation_parameters_inner":{"type":"object","description":"data mask method parameter","properties":{"order":{"type":"integer","format":"int32"},"name":{"type":"string"},"label":{"type":"string"},"type":{"$ref":"#/components/schemas/FieldJsonType"},"nullable":{"type":"boolean"},"possible_values":{"type":"array","items":{"type":"string"}}},"required":["label","name","nullable","order","type"]},"RestoreMappingRecordGetResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/RestoreMappingRecordGetResponse_result_inner"}},"page":{"$ref":"#/components/schemas/Page"}}},"RestoreMappingRecordGetResponse_result_inner":{"type":"object","description":"record Ids mapping","properties":{"id":{"type":"integer","format":"int32","description":"mapping record Id","example":1},"object_name":{"type":"string","description":"object API name","example":"Account"},"old_id":{"type":"string","description":"original record Id","example":"001DD20014lIf2Y11"},"new_id":{"type":"string","description":"new record Id","example":"001DD20014lIf2Y22"},"vsf_created_date":{"type":"string","format":"date-time","description":"mapping record creation date"}}},"RestoreMappingFieldGetResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/RestoreMappingFieldGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"RestoreMappingFieldGetResponseResultInner":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"field mapping id"},"object_name":{"type":"string","description":"object API name","example":"Contact"},"field_name":{"type":"string","description":"field API name","example":"Email"},"vsf_created_date":{"type":"string","format":"date-time"}}},"RestoreJobGetByIdResponse":{"type":"object","properties":{"id":{"type":"number","description":"restore job id","example":12},"name":{"type":"string","description":"job name","example":"job name"},"description":{"type":"string","description":"job description"},"status":{"$ref":"#/components/schemas/RestoreJobStatus"},"type":{"$ref":"#/components/schemas/RestoreJobType"},"vsf_created_date":{"type":"string","format":"date-time","description":"job created date"},"vsf_created_by":{"type":"string","description":"user who created job","example":"user@company.com"},"vsf_last_modified_by":{"type":"string","description":"user who modified job last","example":"user@company.com"},"vsf_started_by":{"type":"string","description":"user who started job","example":"user@company.com"},"cloneable":{"type":"boolean","description":"is job can be cloned"},"start_date":{"type":"string","format":"date-time","description":"job start date"},"finish_date":{"type":"string","format":"date-time","description":"job finish date"},"users":{"type":"array","items":{"type":"string"}},"vsf_version":{"type":"integer","format":"int32","description":"product version this config was created in","example":1}}},"RestoreJobGetResponse":{"type":"object","description":"List of restore jobs","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/RestoreJobGetByIdResponse"}},"page":{"$ref":"#/components/schemas/Page"}}},"RestoreJobStatus":{"type":"string","enum":["STARTING","WARNING","STOPPING","STOPPED","SUCCESS","FAILED","RUNNING","DRAFT","ABORTED"]},"RestoreJobStatesGetResponse":{"type":"object","description":"Aggregated details of the restore job steps","properties":{"target":{"$ref":"#/components/schemas/RestoreJobTargetDto"},"data":{"$ref":"#/components/schemas/RestoreJobDataDto"},"fields":{"$ref":"#/components/schemas/RestoreJobFieldsDto"},"files":{"$ref":"#/components/schemas/RestoreJobFilesDto"},"hierarchy":{"$ref":"#/components/schemas/RestoreJobHierarchyDto"},"options":{"$ref":"#/components/schemas/RestoreJobOptionsDto"}}},"RestoreJobTargetDto":{"type":"object","properties":{"other_org":{"type":"boolean","description":"Should job restore data to another organization","example":false},"source_db":{"type":"integer","format":"int32","description":"source org id","example":1},"source_sf":{"type":"integer","format":"int32","description":"source org id","example":2},"target_sf":{"type":"integer","format":"int32","description":"target org id","example":3}}},"RestoreJobValidationGetResponse":{"type":"object","description":"Validation results for restore job","properties":{"fields":{"$ref":"#/components/schemas/RestoreJobValidationGetResponseFields"},"permissions":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse"}}},"RestoreJobValidationGetResponseFields":{"type":"object","properties":{"error":{"type":"array","items":{"type":"string"}},"warn":{"type":"array","items":{"type":"string"}}}},"SalesforcePermissionsGetResponse":{"type":"object","description":"Permissions verification result","properties":{"user":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse_user"},"converted_leads":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse_converted_leads"},"field":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse_field"},"record_type":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse_record_type"},"audit_fields":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse_audit_fields"},"encrypted_data":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse_encrypted_data"},"object":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponse_object"}}},"SalesforcePermissionsGetResponseAuditFieldsIssuesInner":{"type":"object","properties":{"missed_permissions":{"type":"array","items":{"type":"string"}},"requires":{"type":"string","description":"missing permission name","example":"Set Audit Fields upon Record Creation"}}},"SalesforcePermissionsGetResponseConvertedLeadsIssuesInner":{"type":"object","properties":{"missed_permissions":{"type":"array","items":{"type":"string"}},"requires":{"type":"string","description":"missing permission name","example":"View and Edit Converted Leads"}}},"SalesforcePermissionsGetResponseEncryptedDataIssuesInner":{"type":"object","properties":{"missed_permissions":{"type":"array","items":{"type":"string"}},"requires":{"type":"string","description":"missing permission name","example":"View Encrypted Data"}}},"SalesforcePermissionsGetResponseFieldIssuesInner":{"type":"object","properties":{"name":{"type":"string","description":"field API name","example":"Field_API_name__c"},"requires":{"type":"string","description":"missing permission name","example":"Read Data"}}},"SalesforcePermissionsGetResponseObjectIssuesInner":{"type":"object","properties":{"name":{"type":"string","description":"object API name","example":"Object_API_Name__c"},"requires":{"type":"string","description":"missing permission name","example":"Read Data"}}},"SalesforcePermissionsGetResponseRecordTypeIssuesInner":{"type":"object","properties":{"name":{"type":"string","description":"record type name","example":"My_Record_Type"},"requires":{"type":"string","description":"missing permission name","example":"Read Data"}}},"SalesforcePermissionsGetResponseUserIssuesInner":{"type":"object","properties":{"missed_permissions":{"type":"array","items":{"type":"string"}},"requires":{"type":"string","description":"missing permission name","example":"Query All Files"}}},"SalesforcePermissionsGetResponse_audit_fields":{"type":"object","description":"validation result for user optional permissions (set audit fields, update with inactive owners)","properties":{"severity":{"type":"string","description":"issue severity assigned by application (critical / warning)","example":"warning"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponseAuditFieldsIssuesInner"}}}},"SalesforcePermissionsGetResponse_converted_leads":{"type":"object","description":"validation result for \"view and edit converted leads\" permission","properties":{"severity":{"type":"string","description":"issue severity assigned by application (critical / warning)","example":"warning"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponseConvertedLeadsIssuesInner"}}}},"SalesforcePermissionsGetResponse_encrypted_data":{"type":"object","description":"validation result for user View Encrypted Data permission","properties":{"severity":{"type":"string","description":"issue severity assigned by application (critical / warning)","example":"warning"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponseEncryptedDataIssuesInner"}}}},"SalesforcePermissionsGetResponse_field":{"type":"object","description":"list of fields the user has no access or limited access","properties":{"severity":{"type":"string","description":"issue severity assigned by application (critical / warning)","example":"warning"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponseFieldIssuesInner"}}}},"SalesforcePermissionsGetResponse_object":{"type":"object","description":"list of pbjects the user has no access or limited access","properties":{"severity":{"type":"string","description":"issue severity assigned by application (critical / warning)","example":"warning"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponseObjectIssuesInner"}}}},"SalesforcePermissionsGetResponse_record_type":{"type":"object","description":"list of record types the user has no access or limited access","properties":{"severity":{"type":"string","description":"issue severity assigned by application (critical / warning)","example":"warning"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponseRecordTypeIssuesInner"}}}},"SalesforcePermissionsGetResponse_user":{"type":"object","description":"validation result for user permissions","properties":{"severity":{"type":"string","description":"issue severity assigned by application (critical / warning)","example":"critical"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/SalesforcePermissionsGetResponseUserIssuesInner"}}}},"RestoreJobTargetGetResponse":{"type":"object","description":"Source and target org details","properties":{"other_org":{"type":"boolean","description":"is data being restored to another org","example":false},"source_db":{"type":"integer","format":"int32","description":"database connection Id","example":1},"source_sf":{"type":"integer","format":"int32","description":"organization Id","example":2},"target_sf":{"type":"integer","format":"int32","description":"target organization Id","example":3}},"required":["other_org"]},"RestoreJobSummaryLogGetResponse":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","description":"restore job start time"},"end_time":{"type":"string","format":"date-time","description":"restore job end time"},"run_time":{"type":"integer","format":"int32","description":"restore job duration in seconds"},"rows_inserted":{"type":"integer","format":"int64","description":"rows inserted during execution"},"rows_updated":{"type":"integer","format":"int64","description":"rows updated during execution"},"rows_failed":{"type":"integer","format":"int64","description":"rows failed during execution"},"api_calls_used":{"type":"integer","format":"int32","description":"Salesforce API calls used during execution"},"message":{"type":"string","description":"new Id and status information for each restored data item"},"code":{"type":"string","description":"error code"},"status":{"$ref":"#/components/schemas/RestoreJobStatus"},"downloadable":{"type":"boolean","description":"is job run log are available for download"}}},"CodeCoverageResult":{"type":"object","properties":{"soslInfo":{"type":"array","items":{}},"dmlInfo":{"type":"array","items":{}},"numLocations":{"type":"integer","format":"int32"},"numLocationsNotCovered":{"type":"integer","format":"int32"},"soqlInfo":{"type":"array","items":{}},"methodInfo":{"type":"array","items":{}},"locationsNotCovered":{"type":"array","items":{"$ref":"#/components/schemas/CoverageLocation"}},"name":{"type":"string"},"id":{"type":"string"},"type":{"type":"string"},"namespace":{"type":"string"},"percentCovered":{"type":"integer","format":"int32"},"textInfo":{"type":"string"}}},"CodeCoverageWarning":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"message":{"type":"string"}}},"ComponentMessage":{"type":"object","properties":{"componentType":{"type":"string"},"fileName":{"type":"string"},"fullName":{"type":"string"},"id":{"type":"string"},"problem":{"type":"string"},"success":{"type":"boolean"},"createdDate":{"type":"string"},"created":{"type":"boolean"},"changed":{"type":"boolean"},"deleted":{"type":"boolean"},"lineNumber":{"type":"integer","format":"int32"},"columnNumber":{"type":"integer","format":"int32"},"problemType":{"type":"string"}}},"CoverageLocation":{"type":"object","properties":{"line":{"type":"integer","format":"int32"},"numExecutions":{"type":"integer","format":"int32"},"column":{"type":"integer","format":"int32"},"time":{"type":"number","format":"double"}}},"DeployResult":{"type":"object","properties":{"success":{"type":"boolean"},"checkOnly":{"type":"boolean"},"ignoreWarnings":{"type":"boolean"},"rollbackOnError":{"type":"boolean"},"runTestsEnabled":{"type":"boolean"},"done":{"type":"boolean"},"status":{"type":"string"},"numberComponentsDeployed":{"type":"integer","format":"int32"},"numberComponentsTotal":{"type":"integer","format":"int32"},"numberComponentErrors":{"type":"integer","format":"int32"},"numberTestsCompleted":{"type":"integer","format":"int32"},"numberTestsTotal":{"type":"integer","format":"int32"},"numberTestErrors":{"type":"integer","format":"int32"},"stateDetail":{"type":"string"},"errorMessage":{"type":"string"},"details":{"$ref":"#/components/schemas/DeployResultDetails"},"blockedByUrl":{"type":"string"},"id":{"type":"string"}}},"DeployResultDetails":{"type":"object","properties":{"allComponentMessages":{"type":"array","items":{"$ref":"#/components/schemas/ComponentMessage"}},"componentFailures":{"type":"array","items":{"$ref":"#/components/schemas/ComponentMessage"}},"componentSuccesses":{"type":"array","items":{"$ref":"#/components/schemas/ComponentMessage"}},"runTestResult":{"$ref":"#/components/schemas/RunTestResult"}}},"RestoreJobMetadataSummaryLogGetResponse":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","description":"restore job start time"},"end_time":{"type":"string","format":"date-time","description":"restore job end time"},"run_time":{"type":"integer","format":"int32","description":"restore job duration in seconds","example":10},"status":{"$ref":"#/components/schemas/RestoreJobStatus"},"message":{"type":"string"},"deploy_result":{"$ref":"#/components/schemas/DeployResult","description":"metadata package deployment status"},"downloadable":{"type":"boolean","description":"is job run log are available for download"}}},"RunTestResult":{"type":"object","properties":{"codeCoverage":{"type":"array","items":{"$ref":"#/components/schemas/CodeCoverageResult"}},"codeCoverageWarnings":{"type":"array","items":{"$ref":"#/components/schemas/CodeCoverageWarning"}},"failures":{"type":"array","items":{"$ref":"#/components/schemas/RunTestResultState"}},"successes":{"type":"array","items":{"$ref":"#/components/schemas/RunTestResultState"}}}},"RunTestResultState":{"type":"object","properties":{"time":{"type":"number","format":"float"},"id":{"type":"string"},"message":{"type":"string"},"methodName":{"type":"string"},"name":{"type":"string"},"namespace":{"type":"string"},"packageName":{"type":"string"},"stackTrace":{"type":"string"},"type":{"type":"string"}}},"RestoreJobDetailLogShortGetResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/RestoreJobDetailLogShortGetResponse_result_inner"}},"page":{"$ref":"#/components/schemas/Page"}}},"RestoreJobDetailLogShortGetResponse_result_inner":{"type":"object","description":"Restore job log for specific object or step","properties":{"id":{"type":"integer","format":"int32"},"object_name":{"type":"string","description":"step name or object API name","example":"Account"},"status":{"$ref":"#/components/schemas/RestoreJobLogStatus"},"message":{"type":"string"},"count":{"type":"integer","format":"int64"},"api_calls_used":{"type":"integer","format":"int32","description":"Salesforce API calls used during restore job execution for specific object"}}},"RestoreJobLogStatus":{"type":"string","enum":["CREATED","UPDATED","FAILED","SKIPPED","UNDELETED"]},"ResourcesGeneralInfo":{"type":"object","properties":{"current_time_utc":{"type":"string","format":"date-time"},"num_of_cpus":{"type":"integer","format":"int32","example":8},"server_uptime":{"type":"string","example":"05:29:58.255"},"memory_total_available_mb":{"type":"integer","format":"int64","example":57686}}},"ResourcesGetResponse":{"type":"object","properties":{"general_info":{"$ref":"#/components/schemas/ResourcesGeneralInfo"},"task_info":{"$ref":"#/components/schemas/ResourcesTaskInfo"}}},"ResourcesQueueTaskOverflowByXmx":{"type":"object","properties":{"ram_capacity":{"type":"string"},"schedule_name":{"type":"string"},"queue_overflow":{"type":"boolean"}}},"ResourcesTaskCountByXmx":{"type":"object","properties":{"ram_capacity":{"type":"string"},"task_count":{"type":"integer","format":"int32"}}},"ResourcesTaskInfo":{"type":"object","properties":{"memory_max_usage_required_mb":{"type":"integer","format":"int64"},"task_count_by_xmx":{"type":"array","items":{"$ref":"#/components/schemas/ResourcesTaskCountByXmx"}},"queue_task_overflow_by_xmx":{"type":"array","items":{"$ref":"#/components/schemas/ResourcesQueueTaskOverflowByXmx"}}}},"OrganizationIdp":{"type":"object","description":"organization IDP information","properties":{"id":{"type":"integer","format":"int32","description":"IDP entity primary key","example":1},"is_eca":{"type":"boolean","description":"Is ECA identity provider flag."},"sso_enabled":{"type":"boolean","description":"Whether the organization backs the enabled SSO configuration, which restricts its deletion. True for the organization owning an SSO-enabled ECA identity provider, or matching the SSO login type of a shared (CA) identity provider with SSO enabled.","example":true}}},"OrganizationListGetResponse":{"type":"object","description":"list of organizations","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationShortGetResponse"}},"page":{"$ref":"#/components/schemas/Page"}}},"OrganizationShortGetResponse":{"type":"object","description":"organization description","properties":{"company_id":{"type":"string","format":"uuid","description":"company id","example":"550e8400-e29b-41d4-a716-446655440000"},"company_name":{"type":"string","description":"company name","example":"My company name"},"name":{"type":"string","description":"Salesforce organization alias","example":"My organization"},"sf_instance_id":{"type":"integer","format":"int32","description":"organization Id","example":1},"sf_instance_name":{"type":"string","description":"Salesforce instance name","example":"NA123"},"sf_org_name":{"type":"string","description":"given Salesforce sandbox name or 'production'","example":"production"},"sf_org_type":{"type":"string","description":"Salesforce organization edition","example":"Enterprise Edition"},"storage_location":{"type":"string","description":"file storage location","example":"/opt/vbsf/vbsf-backup/data/566ccea4cabcb71e"},"is_sandbox":{"type":"boolean","description":"is an organization a sandbox","example":false},"org_id":{"type":"string","description":"Salesforce.com organization Id","example":"00D0000000000XX"},"org_url":{"type":"string","description":"Salesforce organization URL","example":"https://company-name.my.salesforce.com"},"vsf_last_modified_date":{"type":"string","format":"date-time","description":"last modified date","example":"2024-03-07T12:14:17.469Z"},"vsf_created_date":{"type":"string","format":"date-time","description":"last modified date","example":"2023-12-07T12:09:49.347Z"},"db_server_id":{"type":"integer","format":"int32","description":"database connection Id","example":1},"db_server_name":{"type":"string","description":"database connection label","example":"My database"},"db_server_db_name":{"type":"string","description":"database schema name","example":"my_database"},"db_server_url":{"type":"string","description":"database server url","example":"localhost"},"db_server_port":{"type":"integer","format":"int32","description":"database server port","example":5432},"is_valid":{"type":"boolean","description":"is salesforce access token valid"},"users":{"type":"array","items":{"type":"string"}},"sf_data_storage_mb":{"$ref":"#/components/schemas/StorageCapacity"},"sf_file_storage_mb":{"$ref":"#/components/schemas/StorageCapacity"},"idp":{"$ref":"#/components/schemas/OrganizationIdp"}}},"StorageCapacity":{"type":"object","description":"storage details description","properties":{"max":{"type":"integer","format":"int32","description":"maximum available memory","example":1285760},"remaining":{"type":"integer","format":"int32","description":"remaining available memory","example":366363}}},"OrganizationGetResponse":{"type":"object","description":"organization description","properties":{"company_id":{"type":"string","format":"uuid","description":"company id","example":"550e8400-e29b-41d4-a716-446655440000"},"company_name":{"type":"string","description":"company name","example":"My company name"},"name":{"type":"string","description":"Salesforce organization alias","example":"My organization"},"sf_instance_id":{"type":"integer","format":"int32","description":"organization Id","example":1},"sf_instance_name":{"type":"string","description":"Salesforce instance name","example":"NA123"},"sf_org_name":{"type":"string","description":"given Salesforce sandbox name or 'production'","example":"production"},"sf_org_type":{"type":"string","description":"Salesforce organization edition","example":"Enterprise Edition"},"storage_location":{"type":"string","description":"file storage location","example":"/opt/vbsf/vbsf-backup/data/566ccea4cabcb71e"},"is_sandbox":{"type":"boolean","description":"is an organization a sandbox","example":false},"org_id":{"type":"string","description":"Salesforce.com Organization ID","example":"00D0000000000XX"},"org_url":{"type":"string","description":"Salesforce organization url","example":"https://company-name.my.salesforce.com"},"vsf_last_modified_date":{"type":"string","format":"date-time","description":"last modified date","example":"2024-03-07T12:14:17.469Z"},"vsf_created_date":{"type":"string","format":"date-time","description":"last modified date","example":"2023-12-07T12:09:49.347Z"},"db_server_id":{"type":"integer","format":"int32","description":"database connection Id","example":1},"db_server_name":{"type":"string","description":"database connection label","example":"My database"},"db_server_db_name":{"type":"string","description":"database name","example":"my_database"},"db_server_url":{"type":"string","description":"database server","example":"localhost"},"db_server_port":{"type":"integer","format":"int32","description":"database port","example":5432},"is_valid":{"type":"boolean","description":"is salesforce access token valid"},"users":{"type":"array","items":{"type":"string"}},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationUserPermission"}},"idp":{"$ref":"#/components/schemas/OrganizationIdp"}}},"OrganizationUserPermission":{"type":"object","properties":{"name":{"type":"string","description":"permission name"},"granted":{"type":"boolean","description":"is permission granted to user associated with organization"}},"required":["granted","name"]},"OrganizationCustomRelationshipGetResponse":{"type":"object","description":"organization's custom relationships","properties":{"parent_object_name":{"type":"string","description":"the parent object name","example":"object_1__c"},"child_object_name":{"type":"string","description":"the child object name","example":"object_2__c"},"child_field_name":{"type":"string","description":"the child field name","example":"field_1__c"},"vsf_last_modified_date":{"type":"string","format":"date-time","example":"2023-12-15T11:21:53.234Z"}}},"OrganizationCustomRelationshipResponseList":{"type":"object","description":"list of organization custom relationships","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationCustomRelationshipGetResponse"}}}},"OrganizationSalesforceLimitGetResponse":{"type":"object","description":"organization storage resources","properties":{"data_storage_mb":{"type":"integer","format":"int32","description":"used Salesforce data storage in Mb","example":1000},"file_storage_mb":{"type":"integer","format":"int32","description":"used Salesforce files storage in Mb","example":1000},"application_data_storage_limit_mb":{"type":"integer","format":"int32","description":"application data storage limit in Mb","example":1000},"application_file_storage_limit_mb":{"type":"integer","format":"int32","description":"application files storage limit in Mb","example":1000}}},"OrganizationDraftCompanyInformation":{"type":"object","description":"Company information linked to the draft organization","properties":{"external_company_id":{"type":"string","format":"uuid","description":"External ID of the company","example":"550e8400-e29b-41d4-a716-446655440000"},"name":{"type":"string","description":"Name of the company","example":"Some name"}}},"OrganizationDraftGetResponse":{"type":"object","properties":{"company_information":{"$ref":"#/components/schemas/OrganizationDraftCompanyInformation"},"organization_information":{"$ref":"#/components/schemas/OrganizationDraftOrganizationInformation"},"sf_login_type":{"$ref":"#/components/schemas/SalesforceType"},"sf_login_url":{"type":"string","description":"Salesforce login URL","example":"https://company-name.my.salesforce.com"},"client_id":{"type":"string","description":"Salesforce connected app client ID","example":"3MVG9..."},"client_secret":{"type":"string","description":"Salesforce connected app client secret in the masked form","example":"123***"},"enable_pkce_extension":{"type":"boolean","description":"Enable sending of the additional parameters required for PKCE extension to the traditional flows.","example":false},"is_eca":{"type":"boolean","description":"Whether the connected app is an External Client App (ECA)","example":true}}},"OrganizationDraftOrganizationInformation":{"type":"object","description":"Salesforce organization information obtained after authorization","properties":{"sf_org_id":{"type":"string","description":"Salesforce organization ID","example":"00Dd2000000r645EAA"},"username":{"type":"string","description":"Salesforce username used to authorize","example":"user.name@company.com"},"sf_org_url":{"type":"string","description":"Salesforce organization instance URL","example":"https://company-name.my.salesforce.com"}}},"CompatibleOrganizationListGetResponse":{"type":"object","description":"list of compatible organizations","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationGetResponse"}}}},"OrganizationApplicationStatus":{"type":"string","enum":["SUCCESS","WARNING","ERROR"]},"OrganizationApplicationStatusGetResponse":{"type":"object","description":"Salesforce connected application status","properties":{"status":{"$ref":"#/components/schemas/OrganizationApplicationStatus"},"message":{"type":"string","example":"Status message for Connected App and connections to Salesforce organizations"}}},"ObjectGetResponse":{"type":"object","description":"List of objects","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ObjectGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"ObjectGetResponseResultInner":{"type":"object","properties":{"name":{"type":"string","description":"object API name in Salesforce","example":"Object_API_Name__c"},"label":{"type":"string","description":"object name in Salesforce","example":"Object Name"},"key_prefix":{"type":"string","description":"Salesforce object key prefix","example":"00k"},"encryptable":{"type":"boolean","description":"can object (files) or object fields be encrypted","example":true}}},"ObjectFieldsByNameGetResponseInner":{"type":"object","properties":{"object_api_name":{"type":"string","description":"object API name in Salesforce","example":"Object_API_name__c"},"api_name":{"type":"string","description":"field API name in Salesforce","example":"Field_API_name__c"},"label":{"type":"string","description":"field label in Salesforce","example":"Field Label"},"db_type":{"$ref":"#/components/schemas/FieldJsonType"},"sf_type":{"type":"string","description":"field type in Salesforce","example":"picklist"},"length":{"type":"integer","format":"int32","description":"field length","example":255,"maximum":65535,"minimum":0},"picklist":{"type":"array","description":"available picklist values defined by metadata","example":["value 1","value 2"],"items":{"type":"string"}},"operators":{"type":"array","description":"allowed operators for a field and field type","example":["equal","in","notIn"],"items":{"type":"string"}},"is_deleted":{"type":"boolean","description":"is field deleted in current version","example":false},"createable":{"type":"boolean","description":"can field be populated on create","example":true},"updatable":{"type":"boolean","description":"can field be updated","example":true},"unique":{"type":"boolean","description":"is field value unique","example":false},"external_id":{"type":"boolean","description":"is field an external Id","example":false},"reference_key_prefix":{"type":"string","description":"key_prefix of an object which is referenced by the field"},"auto_number":{"type":"boolean","description":"is field an auto number","example":false},"digits":{"type":"integer","format":"int32","description":"number of digits before decimal place"},"vsf_encrypted":{"type":"boolean","description":"is field encrypted by the application","example":false}}},"BackupObjectsGetResponse":{"type":"object","properties":{"sobjects":{"type":"array","items":{"$ref":"#/components/schemas/BackupObjectsGetResponseSobjectsInner"}}}},"BackupObjectsGetResponseSobjectsInner":{"type":"object","properties":{"name":{"type":"string","description":"object API name in Salesforce","example":"AccountShare"},"label":{"type":"string","description":"object name in Salesforce","example":"Account Share"},"associate_entity_type":{"type":"string","description":"group name for standard associated objects","example":"Share"},"encryptable":{"type":"boolean","description":"can object fields be encrypted","example":false}}},"SalesforceObjectFieldsGetResponse":{"type":"object","description":"List of object fields","properties":{"fields":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceObjectFieldsGetResponseFieldsInner"}}}},"SalesforceObjectFieldsGetResponseFieldsInner":{"type":"object","properties":{"name":{"type":"string","description":"field API name in Salesforce","example":"Industry__c"},"label":{"type":"string","description":"field label in Salesforce","example":"Account Industry"},"type":{"type":"string","description":"field type in Salesforce","example":"boolean"},"updatable":{"type":"boolean","description":"updatable indicator in Salesforce","example":true},"vsf_required":{"type":"boolean","description":"is field required to create or update a record","example":false},"vsf_encryptable":{"type":"boolean","description":"field can be encrypted","example":true}}},"NotificationUserByIdGetResponses":{"type":"object","description":"Notification message","properties":{"id":{"type":"integer","format":"int32","description":"notification message Id","example":1},"message":{"type":"string","description":"notification message text","example":"SUCCESS: METADATA backup for My_Org"},"viewed":{"type":"boolean","description":"is message acknowledged","example":false},"message_time":{"type":"string","format":"date-time"},"uri":{"type":"string","description":"uri for the job or resource that triggered the notification","example":"/#/backupSessionDetails?data=..."}}},"NotificationSenderGetResponse":{"type":"object","properties":{"sender":{"type":"string","example":"user@company.com"}}},"NotificationChannelGetResponse":{"type":"object","description":"System notification channel details","properties":{"id":{"type":"integer","format":"int32","description":"notification channel Id","example":1},"type":{"$ref":"#/components/schemas/NotificationChannelType"},"company_id":{"type":"string","format":"uuid","description":"company Id","example":"550e8400-e29b-41d4-a716-446655440000"},"enabled":{"type":"boolean","description":"is notification channel enabled"},"properties":{"$ref":"#/components/schemas/NotificationChannelGetResponseProperties"}}},"NotificationChannelGetResponseProperties":{"type":"object","properties":{"name":{"type":"string","description":"channel name"},"server":{"type":"string","description":"server url","example":"test.server.com"},"port":{"type":"integer","format":"int32","description":"server port","example":25},"auth":{"type":"boolean","description":"is authentication required","example":false},"user":{"type":"string","description":"server auth user"},"secret":{"type":"string","description":"server secret","maxLength":2147483647,"minLength":1},"timeout":{"type":"integer","format":"int32","description":"server timeout","example":1000},"ssl":{"type":"boolean","example":false},"sender":{"type":"string","description":"email address 'FROM', if non-default value is provided","example":"user@company.com"},"idp_id":{"type":"integer","format":"int32","description":"IDP connection Id, if an existing connection is used","example":123},"idp_email":{"$ref":"#/components/schemas/IdpEmailProperties"}},"required":["name"]},"NotificationRuleAllGetResponses":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/NotificationRuleGetResponses"}},"page":{"$ref":"#/components/schemas/Page"}}},"NotificationRuleGetResponses":{"type":"object","description":"System notification rule description","properties":{"id":{"type":"integer","format":"int32","description":"notification rule Id","example":12},"code":{"$ref":"#/components/schemas/NotificationRuleCode"},"state":{"$ref":"#/components/schemas/NotificationRuleState"},"threshold":{"type":"integer","format":"int32","description":"number of time an event should happen before a notification is sent; 0 - immediately","example":0},"subject":{"type":"string","description":"notification subject; runtime variables can be used","example":"[%job_status%]: [%job_type%] backup for [%salesforce_name%]"},"on_status":{"$ref":"#/components/schemas/NotificationRuleOnStatus"},"channel":{"type":"array","description":"channel and recipients for the notification rule","items":{"$ref":"#/components/schemas/NotificationRuleGetResponsesChannelInner"}},"scope":{"type":"array","description":"list of monitored companies, organizations or jobs","items":{"$ref":"#/components/schemas/NotificationRuleScope"}}}},"NotificationRuleGetResponsesChannelInner":{"type":"object","properties":{"application":{"type":"boolean","description":"is notification sent via the application channel","example":false},"recipient":{"$ref":"#/components/schemas/NotificationRuleRecipient"},"channel":{"$ref":"#/components/schemas/NotificationChannelGetResponse"}}},"NotificationRuleStatus":{"type":"string","enum":["ERROR","WARNING","SUCCESS"]},"ObjectMetadataHistoryGetResponse":{"type":"object","description":"Commits history for metadata object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ObjectMetadataHistoryGetResponseResultInner"}}}},"ObjectMetadataHistoryGetResponseResultInner":{"type":"object","properties":{"commit_date":{"type":"string","format":"date-time","description":"commit date"},"commit_hash":{"type":"string","description":"commit hash"}}},"ObjectMetadataFileContentGetResponse":{"type":"object","description":"content of file by lines","properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/ObjectMetadataFileContentGetResponseFilesInner"}}}},"ObjectMetadataFileContentGetResponseFilesInner":{"type":"object","properties":{"file_name":{"type":"string","description":"Name of the file in the commit","example":"ApexClass.xml"},"lines":{"type":"array","items":{"type":"string"}}}},"ObjectMetadataGetResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ObjectMetadataGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"ObjectMetadataGetResponseResultInner":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"metadata object type Id","example":1},"type_name":{"type":"string","description":"metadata object type name","example":"CustomPermission"},"child_object":{"type":"array","items":{"type":"string"}}}},"ObjectMetadataFieldGetResponse":{"type":"object","description":"list of fields for metadata object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ObjectMetadataFieldGetResponseResultInner"}}}},"ObjectMetadataFieldGetResponseResultInner":{"type":"object","properties":{"api_name":{"type":"string","description":"field API name","example":"object_name"},"label":{"type":"string","description":"field description","example":"Metadata object name"},"db_type":{"$ref":"#/components/schemas/FieldJsonType"},"length":{"type":"integer","format":"int32","description":"length for some fields where it is possible","example":100,"maximum":65535,"minimum":0},"operators":{"type":"array","description":"allowed operators for the field","items":{"type":"string"}}}},"LicenseCheckStatus":{"type":"string","enum":["valid","warning","invalid"]},"LicenseGetResponse":{"type":"object","properties":{"company":{"type":"string","description":"company name","example":"My company"},"description":{"type":"string","description":"license description"},"email":{"type":"string","description":"license administrator email","example":"user@my_company.com"},"users":{"type":"integer","format":"int32","description":"max active users allowed by license","example":1000},"license_id":{"type":"string","description":"license Id","example":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"},"license_expires":{"type":"string","description":"license expiration date","example":"31/12/2025"},"license_type":{"$ref":"#/components/schemas/LicenseType"},"status":{"$ref":"#/components/schemas/LicenseCheckStatus"},"message":{"type":"string","description":"license error message","example":"License is valid (319 days left)"},"signature":{"type":"string","description":"license signature"},"last_success_response":{"type":"string","description":"last time license has successfully passed validation","example":"04/04/2024"},"support_id":{"type":"string","description":"support Id provided by paid license","example":"12345678"},"salesforce_id":{"type":"array","description":"list of Salesforce org Ids in case license is issued for specific organizations","items":{"type":"string"}},"user_license":{"$ref":"#/components/schemas/LicenseGetResponseUserLicense"},"package":{"type":"string","description":"available functionality packaging option","example":"SalesforceAdvanced"}}},"LicenseGetResponseUserLicense":{"type":"object","properties":{"sfdc_used":{"type":"integer","format":"int32","description":"Used SFDC user licences","example":800},"aul_used":{"type":"integer","format":"int32","description":"Used AUL user licences","example":200}}},"LicenseType":{"type":"string","enum":["Evaluation","NFR","Subscription","Rental","Community"]},"LicenseValidationResponse":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/LicenseCheckStatus"},"message":{"type":"string","description":"license status message","example":"License is valid (319 days left)"},"signature":{"type":"string","description":"jwt token with signature"}}},"LegalDocumentType":{"type":"string","enum":["EULA","LICENSING_POLICY","THIRD_PARTY"]},"InitStatus":{"type":"string","enum":["SET_LOCAL_ADMIN_PASSWORD","CONFIGURE_APP_DB","CONFIGURE_CONN_APP","READY_TO_FINISH","INIT_FINISHED"]},"InitStatusGetResponse":{"type":"object","properties":{"status":{"$ref":"#/components/schemas/InitStatus"}}},"AccessTokenResponse":{"type":"object","properties":{"access_token":{"type":"string","description":"access token"}}},"DbName":{"type":"string","enum":["postgresql"]},"GetEnvironmentResponse":{"type":"object","description":"Information about environment application running in","properties":{"os_name":{"$ref":"#/components/schemas/OsName"},"os_version":{"type":"string","example":"8.8"},"db_name":{"$ref":"#/components/schemas/DbName"},"db_version":{"type":"string","example":"13.13"},"java_version":{"type":"string","example":"17.0.11"}},"required":["db_name","db_version","os_name","os_version"]},"OsName":{"type":"string","enum":["redhat","oracle","ubuntu","rocky","alma","unsupported"]},"EncryptionAwsMetadata":{"type":"object","properties":{"arn":{"type":"string","description":"property of AWS key","example":"arn:aws:kms:us-west-2:111122223333:key/1234abcd..."},"aws_account_id":{"type":"string","description":"AWS account Id","example":"012345678910"},"aws_provider_id":{"type":"integer","format":"int32"},"region":{"type":"string","description":"AWS region code","example":"us-west-1"},"created":{"type":"string"}}},"EncryptionDescriptionGetResponse":{"type":"object","description":"Details of encryption key used by organization","properties":{"data_key_thumbprint":{"type":"string","description":"encryption key thumbprint","example":"someString"},"data_key_downloads":{"type":"integer","format":"int32","description":"number of time a key was downloaded"},"user_consent":{"type":"boolean"},"provider_key_type":{"type":"string","description":"key management service name; 'VBSF' if data key is encrypted by application","example":"AWS"},"provider_key_external_id":{"type":"string","description":"key Id in a key management service"},"provider_key_parameters":{"$ref":"#/components/schemas/EncryptionKeyProviderParameters"},"vsf_created_date":{"type":"string","format":"date-time","example":"2023-12-15T11:21:53.234Z"},"vsf_last_modified_date":{"type":"string","format":"date-time","example":"2023-12-15T11:21:53.234Z"}}},"EncryptionKeyProviderParameters":{"type":"object","description":"list of parameters specific for a key management service","properties":{"vbsf":{"$ref":"#/components/schemas/EncryptionVbsfMetadata"},"aws":{"$ref":"#/components/schemas/EncryptionAwsMetadata"}}},"EncryptionVbsfMetadata":{"type":"object","properties":{"data_key_thumbprint":{"type":"string"},"created":{"type":"string"}}},"EncryptionKeyProvider":{"type":"string","enum":["VBSF","AWS"]},"EncryptionListGetResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/EncryptionListGetResponseItem"}}}},"EncryptionListGetResponseItem":{"type":"object","properties":{"sf_instance_id":{"type":"integer","format":"int32","description":"organization ID","example":1},"sf_instance_name":{"type":"string","description":"organization alias in application","example":"My Production Org"},"company_id":{"type":"string","format":"uuid","description":"company external id"},"company_name":{"type":"string","description":"sf instance name"},"db_server_id":{"type":"integer","format":"int32","description":"database connection Id","example":1},"db_server_name":{"type":"string","description":"database connection name","example":"my DB connection"},"master_key_provider":{"$ref":"#/components/schemas/EncryptionKeyProvider"},"master_key_external_id":{"type":"string"},"master_key_parameters":{"$ref":"#/components/schemas/EncryptionKeyProviderParameters"},"master_key_status":{"$ref":"#/components/schemas/EncryptionMasterKeyStatus"},"master_key_message":{"type":"string"},"data_key_is_used":{"type":"boolean"}}},"EncryptionMasterKeyStatus":{"type":"string","enum":["VALID","INVALID"]},"StreamingResponseBody":{},"SalesforceDatabasesGetResponse":{"type":"object","description":"List of found database connection records","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/SalesforceDatabasesGetResponse_result_inner"}},"page":{"$ref":"#/components/schemas/Page"}}},"SalesforceDatabasesGetResponseResultInnerSalesforceOrganization":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"organization Id","example":1},"org_id":{"type":"string","description":"Salesforce organization Id","example":"123"},"org_name":{"type":"string","description":"given Salesforce sandbox name or 'production'","example":"production"},"name":{"type":"string","description":"Salesforce organization alias","example":"My Org"},"type":{"type":"string","description":"Salesforce organization edition","example":"Enterprise Edition"},"instance_name":{"type":"string","description":"Salesforce instance name","example":"NA123"},"is_sandbox":{"type":"boolean","description":"is an organization a sandbox","example":false}}},"SalesforceDatabasesGetResponse_result_inner":{"type":"object","description":"database connection details","properties":{"id":{"type":"integer","format":"int32","description":"database connection Id","example":12},"name":{"type":"string","description":"database connection label","example":"My database"},"db_name":{"type":"string","description":"database name","example":"my_database"},"db_size_bytes":{"type":"integer","format":"int64","description":"database size (bytes)","example":1234567890},"db_size_normalized":{"type":"string","description":"database size (Mb/Gb)","example":"123"},"user":{"type":"string","description":"database userid","example":"vbsf"},"state":{"$ref":"#/components/schemas/StateEnum","description":"database state","example":"ok"},"url":{"type":"string","description":"database server","example":"localhost"},"port":{"type":"integer","format":"int32","description":"database port","example":5432},"connected":{"type":"boolean","description":"is database connection valid","example":true},"connected_error":{"type":"string","description":"connection error message"},"company_id":{"type":"string","format":"uuid","description":"company Id"},"company_name":{"type":"string","description":"company name","example":"My company"},"salesforce_organization":{"$ref":"#/components/schemas/SalesforceDatabasesGetResponseResultInnerSalesforceOrganization"}}},"StateEnum":{"type":"string","enum":["empty","corrupted","ok"]},"ApplicationDatabaseGetResponse":{"type":"object","description":"configuration database details","properties":{"backup_job_list":{"type":"array","description":"list of existing backup policies","items":{"type":"integer","format":"int32"}},"database":{"type":"integer","format":"int32","description":"number of database connection records","example":2},"organization":{"type":"integer","format":"int32","description":"number of registered organizations","example":1},"file_location":{"type":"integer","format":"int32","description":"number of existing file storages","example":1},"application_db":{"$ref":"#/components/schemas/ApplicationDatabaseProperties"}}},"ApplicationDatabaseProperties":{"type":"object","description":"configuration database properties","properties":{"db_name":{"type":"string","description":"database name","example":"config_db"},"url":{"type":"string","description":"database server","example":"localhost"},"port":{"type":"integer","format":"int32","description":"database port","example":5432},"user":{"type":"string","description":"database userid","example":"vbsf"}}},"CompanyGetResponse":{"type":"object","properties":{"result":{"type":"array","description":"List of companies","items":{"$ref":"#/components/schemas/CompanyGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"CompanyGetResponseResultInner":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"company id"},"name":{"type":"string","description":"company name","example":"My company name"},"users":{"type":"integer","format":"int32","description":"sum of users with Salesforce license for production organizations","example":2000},"data_size":{"type":"integer","format":"int32","description":"production orgs data size (Mb)"},"storage_size":{"type":"integer","format":"int64","description":"file storage size (bytes)","example":93152874386},"db_size_bytes":{"type":"integer","format":"int64","description":"database size (bytes)","example":2076984315162},"sf_org":{"type":"integer","format":"int32","description":"number of organizations registered in a company, including sandbox","example":2}}},"CloudProviderGetResponse":{"type":"object","description":"Cloud provider connection record","properties":{"id":{"type":"integer","format":"int32","description":"connection record Id","example":1},"type":{"$ref":"#/components/schemas/CloudProviderType"},"name":{"type":"string","description":"cloud provider account","example":"123456789012"}}},"AwsCloudProviderKey":{"type":"object","description":"AWS encryption key description","properties":{"key_id":{"type":"string","example":"1234abcd-12ab-34cd-56ef-1234567890ab"},"key_arn":{"type":"string","example":"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"}},"required":["key_arn","key_id"]},"AwsRegionGetResponse":{"type":"object","properties":{"code":{"type":"string","example":"ap-east-1"},"name":{"type":"string","example":"Asia Pacific (Hong Kong)"}},"required":["code","name"]},"BackupJobGetResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobGetResponse_result_inner"}},"page":{"$ref":"#/components/schemas/Page"}}},"BackupJobGetResponse_result_inner":{"type":"object","description":"backup policy details","properties":{"id":{"type":"integer","format":"int32","description":"backup policy Id","example":1},"name":{"type":"string","description":"backup policy name","example":"backup-policy-1"},"type":{"$ref":"#/components/schemas/BackupJobType"},"schedule_name":{"type":"string","description":"selected schedule name, or 'Custom schedule is set' if more than 1 schedules are set, or 'Disabled' - if backup policy is disabled","example":"Hourly"},"is_disabled":{"type":"boolean","description":"is backup policy disabled","example":false},"status":{"$ref":"#/components/schemas/BackupJobStatus"},"vsf_created_date":{"type":"string","format":"date-time","description":"backup policy created date","example":"2024-03-15T16:14:30.566Z"},"last_run_date":{"type":"string","format":"date-time","description":"backup policy last run date","example":"2024-03-25T17:00:05.660Z"},"sf_instance":{"$ref":"#/components/schemas/OrganizationGetResponse"}}},"BackupJobStatus":{"type":"string","enum":["STARTING","DRAFT","RUNNING","FAILED","SUCCESS","ABORTED","SKIPPED","WARNING","STOPPING","STOPPED"]},"BackupJobType":{"type":"string","enum":["DATA","METADATA","FILE","VALIDATE","ENCRYPTION","RELOAD"]},"BackupJobGetByIdResponse":{"type":"object","description":"backup policy details","properties":{"sf_instance":{"$ref":"#/components/schemas/OrganizationGetResponse"},"job_type":{"$ref":"#/components/schemas/BackupJobType"},"name":{"type":"string","description":"backup policy name","example":"backup-policy-1"},"db_server_id":{"type":"integer","format":"int32","description":"database connection Id","example":1},"add_new_objects":{"type":"boolean","description":"whether new objects are automatically included in the backup policy","example":true},"add_new_fields":{"type":"boolean","description":"whether new fields are automatically included in the backup policy","example":true},"global_schedule_id":{"type":"integer","format":"int32","description":"Id of the main schedule used to backup metadata, data and files","example":1},"api_usage_limit_percent":{"type":"integer","format":"int32","description":"daily API usage limit for backup policy run","example":50},"api_bulk_usage_limit_percent":{"type":"integer","format":"int32","description":"daily bulk API usage limit for backup policy run","example":50},"start_encryption_now":{"type":"boolean","description":"used on create / update to apply encryption change right after saving policy","example":false},"objects":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobGetByIdResponse_objects_inner"}},"exclude_objects":{"type":"array","description":"objects excluded from backup policy","items":{"$ref":"#/components/schemas/BackupJobGetByIdResponseExcludeObjectsInner"}},"exclude_fields":{"type":"array","description":"fields excluded from backup policy","items":{"$ref":"#/components/schemas/BackupJobGetByIdResponseExcludeFieldsInner"}},"encrypt_fields":{"type":"array","description":"encrypted fields","items":{"$ref":"#/components/schemas/BackupJobGetByIdResponseEncryptFieldsInner"}},"files":{"type":"array","description":"file types to include in the backup policy","items":{"$ref":"#/components/schemas/BackupJobGetByIdResponseFilesInner"}},"encrypt_files":{"type":"array","description":"encrypted file types included in the backup policy","items":{"$ref":"#/components/schemas/BackupJobGetByIdResponseEncryptFilesInner"}},"retention":{"$ref":"#/components/schemas/BackupJobGetByIdResponse_retention"}}},"BackupJobGetByIdResponseEncryptFieldsInner":{"type":"object","properties":{"field":{"type":"string","description":"field API name","example":"Description"},"encrypted":{"type":"boolean","description":"is field encrypted","example":true},"editable":{"type":"boolean","description":"can field encryption settings be modified","example":false},"message":{"type":"string","description":"encryption process message","example":"Encryption is in progress"},"object":{"type":"string","description":"object API name","example":"Opportunity"}}},"BackupJobGetByIdResponseEncryptFilesInner":{"type":"object","properties":{"object":{"type":"string","description":"encrypted file object API name","example":"Attachment"}},"required":["object"]},"BackupJobGetByIdResponseExcludeFieldsInner":{"type":"object","properties":{"field":{"type":"string","description":"field API name","example":"Description"},"is_deleted":{"type":"boolean","description":"is object deleted","example":false},"object":{"type":"string","description":"object API name","example":"Opportunity"}}},"BackupJobGetByIdResponseExcludeObjectsInner":{"type":"object","properties":{"object_api_name":{"type":"string","description":"object API name"},"is_deleted":{"type":"boolean","description":"is object deleted","example":false}}},"BackupJobGetByIdResponseFilesInner":{"type":"object","properties":{"object":{"type":"string","description":"included file object API name","example":"Attachment"}},"required":["object"]},"BackupJobGetByIdResponseRetentionObjectsInner":{"type":"object","properties":{"object_name":{"type":"string","description":"object API name","example":"Contact"},"enabled":{"type":"boolean","description":"is retention schedule enabled","example":true},"deleted_older_than":{"type":"integer","format":"int32","description":"delete record version older than specified value","example":12},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"}}},"BackupJobGetByIdResponse_objects_inner":{"type":"object","description":"objects which have custom backup schedule assigned","properties":{"object_api_name":{"type":"string","description":"object API name","example":"OpportunityLineItem"},"schedule_id":{"type":"integer","format":"int32","description":"schedule Id","example":2},"is_deleted":{"type":"boolean","description":"is object deleted","example":false}}},"BackupJobGetByIdResponse_retention":{"type":"object","description":"retention settings","properties":{"data":{"$ref":"#/components/schemas/BackupJobGetByIdResponse_retention_data"},"file":{"$ref":"#/components/schemas/BackupJobGetByIdResponse_retention_file"},"content":{"$ref":"#/components/schemas/BackupJobGetByIdResponse_retention_content"},"objects":{"type":"array","description":"objects with custom retention settings","items":{"$ref":"#/components/schemas/BackupJobGetByIdResponseRetentionObjectsInner"}}}},"BackupJobGetByIdResponse_retention_content":{"type":"object","description":"ContentDocument retention settings","properties":{"enabled":{"type":"boolean","description":"is retention schedule enabled","example":true},"deleted_older_than":{"type":"integer","format":"int32","description":"purge historical ContentVersion older than specified value from backup","example":3},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"}}},"BackupJobGetByIdResponse_retention_data":{"type":"object","description":"main data retention settings","properties":{"enabled":{"type":"boolean","description":"is retention schedule enabled","example":true},"deleted_older_than":{"type":"integer","format":"int32","description":"delete record versions older than specified value","example":6},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"},"delete_attachment":{"type":"boolean","description":"should Attachment be deleted together with main record"}}},"BackupJobGetByIdResponse_retention_file":{"type":"object","description":"files retention settings","properties":{"enabled":{"type":"boolean","description":"is retention schedule enabled","example":true},"deleted_older_than":{"type":"integer","format":"int32","description":"purge deleted files older than specified value from backup","example":3},"deleted_older_period":{"$ref":"#/components/schemas/TimePeriod"}}},"BackupJobLogSummaryGetResponse":{"type":"object","description":"Backup policy sessions summary","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobLogSummaryGetResponse_result_inner"}},"page":{"$ref":"#/components/schemas/Page"}}},"BackupJobLogSummaryGetResponse_result_inner":{"type":"object","description":"backup policy session","properties":{"log_id":{"type":"integer","format":"int32","description":"backup session id","example":123},"job_id":{"type":"integer","format":"int32","description":"backup policy id","example":1},"start_time":{"type":"string","format":"date-time","description":"backup policy session start time","example":"2024-03-26T00:00:01.613Z"},"end_time":{"type":"string","format":"date-time","description":"backup policy session end time","example":"2024-03-26T00:00:17.590Z"},"run_time":{"type":"string","description":"session execution time","example":"00:00:16"},"rows_loaded":{"type":"integer","format":"int64","description":"records loaded during backup","example":90},"rows_inserted":{"type":"integer","format":"int64","description":"records inserted during backup","example":10},"rows_updated":{"type":"integer","format":"int64","description":"records updated during backup","example":75},"rows_deleted":{"type":"integer","format":"int64","description":"records deleted during backup","example":5},"rows_failed":{"type":"integer","format":"int64","description":"records failed during backup","example":0},"api_calls_used":{"type":"integer","format":"int32","description":"number of API calls used during the session","example":1645},"processed_objects":{"type":"integer","format":"int32","description":"number of objects processed","example":0},"message":{"type":"string","description":"backup policy session status message"},"run_type":{"type":"string","description":"has job started on schedule (auto) or manually","example":"manual"},"state":{"$ref":"#/components/schemas/BackupJobState"},"status":{"$ref":"#/components/schemas/BackupJobStatus"},"type":{"$ref":"#/components/schemas/BackupJobType"},"schedule_name":{"type":"string","description":"schedule name for the current session","example":"Daily"},"downloadable":{"type":"boolean","description":"is session log available for download","example":true}}},"BackupJobState":{"type":"string","enum":["ENABLED","DISABLED","DELETED"]},"BackupJobLogDetailsGetResponse":{"type":"object","description":"Backup policy session log","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/BackupJobLogDetailsGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"BackupJobLogDetailsGetResponseResultInner":{"type":"object","properties":{"object_name":{"type":"string","description":"name of event or backed-up object (session step)","example":"AccountHistory"},"job_start_time":{"type":"string","format":"date-time","description":"backup session step start time","example":"2024-01-10T12:29:10.411Z"},"run_time":{"type":"string","description":"session step execution time","example":"00:02:33"},"job_end_time":{"type":"string","format":"date-time","description":"backup session step end time","example":"2024-01-10T12:31:43.869Z"},"rows_loaded":{"type":"integer","format":"int64","description":"records loaded during backup","example":55357},"rows_inserted":{"type":"integer","format":"int64","description":"records inserted during backup","example":55350},"rows_updated":{"type":"integer","format":"int64","description":"records updated during backup","example":0},"rows_deleted":{"type":"integer","format":"int64","description":"records deleted during backup","example":7},"rows_failed":{"type":"integer","format":"int64","description":"records failed during backup","example":0},"rows_downloaded":{"type":"integer","format":"int64","description":"records downloaded during file backup"},"api_calls_used":{"type":"integer","format":"int32","description":"api calls used during session step execution","example":121},"status":{"$ref":"#/components/schemas/BackupJobStatus"},"message":{"type":"string","description":"status message"}}},"SystemAuditEventType":{"type":"string","enum":["USER","SYSTEM"]},"SystemAuditGetResponse":{"type":"object","description":"audit record","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/SystemAuditGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"SystemAuditGetResponseResultInner":{"type":"object","properties":{"id":{"type":"integer","format":"int32","example":1},"company_id":{"type":"string","format":"uuid","description":"company Id","example":"3fa85f64-5717-4562-b3fc-2c963f66afa6"},"company_name":{"type":"string","description":"company name","example":"My company"},"event_type":{"$ref":"#/components/schemas/SystemAuditEventType"},"event":{"type":"string","description":"logged event details","example":"Restore job created: restore-job-1 [ID: 1]"},"vsf_created_date":{"type":"string","format":"date-time","description":"audit record creation date"},"vsf_created_by":{"type":"integer","format":"int32","description":"user Id","example":1},"user_ip":{"type":"string","description":"user IP address","example":"1.1.1.1"},"user_name":{"type":"string","description":"user name","example":"admin"}},"required":["id"]},"ArchiveObjectsGetResponse":{"type":"object","description":"List of objects available for archival","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveObjectsGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"ArchiveObjectsGetResponseResultInner":{"type":"object","properties":{"name":{"type":"string","description":"object API name in Salesforce","example":"Object_API_Name__c"},"label":{"type":"string","description":"object name in Salesforce","example":"Object Name"},"key_prefix":{"type":"string","description":"Salesforce object key prefix","example":"00k"}}},"ArchiveJobGetResponse":{"type":"object","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveJobGetResponse_result_inner"}},"page":{"$ref":"#/components/schemas/Page"}}},"ArchiveJobGetResponse_result_inner":{"type":"object","description":"data archival policy description","properties":{"id":{"type":"integer","format":"int32","description":"data archival policy Id","example":1},"name":{"type":"string","description":"data archival policy name","example":"Test"},"object_api_name":{"type":"string","description":"API name of a root object","example":"Account"},"schedule_name":{"type":"string","description":"data archival policy execution schedule","example":"Weekly"},"is_disabled":{"type":"boolean","description":"is data archival policy disabled"},"status":{"$ref":"#/components/schemas/ArchiveJobStatus"},"vsf_created_date":{"type":"string","format":"date-time","description":"data archival policy create date"},"vsf_created_by":{"type":"string","description":"data archival policy created by","example":"user@company.com"},"last_run_date":{"type":"string","format":"date-time","description":"data archival policy last execution date"},"test_run":{"type":"boolean","description":"is data archival policy executed in test mode (data is not deleted)"}}},"ArchiveJobLogGetByIdResponse":{"type":"object","description":"Data archival policy sessions summary","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveJobLogGetByIdResponse_result_inner"}},"page":{"$ref":"#/components/schemas/Page"}}},"ArchiveJobLogGetByIdResponse_result_inner":{"type":"object","description":"data archival policy session","properties":{"job_id":{"type":"integer","format":"int32","description":"data archival policy Id","example":1},"log_id":{"type":"integer","format":"int32","description":"data archival session Id","example":2},"start_time":{"type":"string","format":"date-time","description":"data archival session start date"},"end_time":{"type":"string","format":"date-time","description":"data archival session end date"},"run_time":{"type":"string","description":"session execution time","example":"90"},"rows_deleted":{"type":"integer","format":"int64","description":"records deleted by data archival policy","example":100},"rows_failed":{"type":"integer","format":"int64","description":"records failed during data archival"},"api_calls_used":{"type":"integer","format":"int64","description":"number of API calls used during the session","example":123},"processed_objects":{"type":"integer","format":"int32","description":"number of objects processed"},"status":{"$ref":"#/components/schemas/ArchiveJobStatus"},"message":{"type":"string","description":"data archival session status message"},"run_type":{"type":"string","description":"has job started on schedule or manually","example":"auto"},"downloadable":{"type":"boolean","description":"is session log available for download","example":true},"job_config":{"$ref":"#/components/schemas/ArchiveJobConfig"}}},"ArchiveVerifyPermission":{"type":"object","properties":{"issues":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveVerifyPermissionIssuesInner"}},"object":{"type":"string"}}},"ArchiveVerifyPermissionIssuesInner":{"type":"object","properties":{"name":{"type":"string"},"severity":{"type":"string"}}},"ArchiveVerifyPermissionsGetResponse":{"type":"object","properties":{"permissions":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveVerifyPermission"}},"types":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveVerifyType"}},"common_permissions":{"type":"array","items":{"type":"string"}}}},"ArchiveVerifyType":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"string"}},"object":{"type":"string"}}},"ArchiveConsentListGetResponse":{"type":"object","description":"list of objects not included in backup policy","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveConsentListItem"}}}},"ArchiveConsentListItem":{"type":"object","properties":{"object_api_name":{"type":"string","description":"object API name","example":"Object_API_Name__c"},"lookup_field_api_name":{"type":"string","description":"relation field API name","example":"Field_API_name__c"},"reason_code":{"$ref":"#/components/schemas/ArchiveConsentListReason"}}},"ArchiveConsentListReason":{"type":"string","enum":["DIRECT_EXCLUDE","PARENT_EXCLUDE","PERMISSION"]},"ArchiveJobLogDetailsGetResponse":{"type":"object","description":"Data archival session log","properties":{"result":{"type":"array","items":{"$ref":"#/components/schemas/ArchiveJobLogDetailsGetResponseResultInner"}},"page":{"$ref":"#/components/schemas/Page"}}},"ArchiveJobLogDetailsGetResponseResultInner":{"type":"object","properties":{"id":{"type":"integer","format":"int32","description":"log id"},"object_name":{"type":"string","description":"name of archived object or an event (session step)","example":"Custom_Object__c"},"start_time":{"type":"string","format":"date-time","description":"archival session step start time"},"end_time":{"type":"string","format":"date-time","description":"archival session step end time"},"run_time":{"type":"string","description":"session step execution time","example":"90"},"rows_deleted":{"type":"integer","format":"int64","description":"records archived","example":5},"rows_failed":{"type":"integer","format":"int64","description":"records failed","example":1},"api_calls_used":{"type":"integer","format":"int64","description":"API calls used during session step execution","example":123},"hierarchy":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/components/schemas/ArchiveJobStatus"},"message":{"type":"string","description":"status message"}}},"ApplicationSettingsGetResponse":{"type":"object","properties":{"result":{"type":"array","description":"list of application parameters by component","items":{"$ref":"#/components/schemas/ApplicationSettingsValue"}}}},"ApplicationSettingsType":{"type":"string","enum":["base64","boolean","date","datetime","double","email","encrypted","int","json","yaml","long","percent","picklist","text","time","url","path","uuid"]},"ApplicationSettingsValue":{"type":"object","properties":{"parameter":{"type":"string","description":"settings parameter name","example":"sf.bulk.batch.size"},"component":{"$ref":"#/components/schemas/ApplicationSettingsComponent"},"by_default":{"type":"string","description":"parameter default value","example":"5000"},"value":{"type":"string","description":"parameter current value","example":"5000"},"type":{"$ref":"#/components/schemas/ApplicationSettingsType"},"length":{"type":"integer","format":"int32","description":"length for string parameter"},"min_val":{"type":"integer","format":"int32","description":"parameter minimum value","example":0},"max_val":{"type":"integer","format":"int32","description":"parameter maximum value"},"splitter":{"type":"string","description":"delimiter character for parameter values"},"picklist_values":{"type":"string","description":"supported parameter values delimited by 'splitter' character"},"description":{"type":"string","description":"parameter description","example":"Batch size for the BULK API"},"validation":{"type":"string","description":"regex for parameter value validation"},"validation_description":{"type":"string","description":"description of regex validation"},"experimental":{"type":"boolean","description":"experimental support of a feature","example":false},"readonly":{"type":"boolean","description":"readonly flag","example":false}}}},"securitySchemes":{"bearerAuth":{"type":"apiKey","name":"Authorization","in":"header","scheme":"bearer"}}}}