openapi: 3.2.0 info: title: Partners CRM Sync Settings API description: Partners Hub API documentation version: 1.0.0 servers: - url: https://agency-partner-hub-web.global-aws-use1-p.app-us1.com/ description: Production tags: - name: CRM Sync Settings description: Manage CRM synchronization settings. paths: /api/crm-sync/v1/settings: get: tags: - CRM Sync Settings operationId: get_crm_sync_settings_get responses: '200': description: Current sync settings content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ApiErrorResponse' example: type: https://tools.ietf.org/html/rfc2616#section-10 title: An error occurred status: 400 detail: Bad Request '401': description: Authorization error content: application/json: schema: $ref: '#/components/schemas/UnauthorizedResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ApiErrorResponse' example: type: https://tools.ietf.org/html/rfc2616#section-10 title: An error occurred status: 404 detail: Not Found security: - PartnerJwtBearerAuth: [] summary: Get CRM sync settings put: tags: - CRM Sync Settings operationId: put_crm_sync_settings_update requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UpdateSettingsRequest' responses: '200': description: Settings updated successfully content: application/json: schema: $ref: '#/components/schemas/SettingsResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ApiErrorResponse' example: type: https://tools.ietf.org/html/rfc2616#section-10 title: An error occurred status: 400 detail: Bad Request '401': description: Authorization error content: application/json: schema: $ref: '#/components/schemas/UnauthorizedResponse' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ApiErrorResponse' example: type: https://tools.ietf.org/html/rfc2616#section-10 title: An error occurred status: 404 detail: Not Found '422': description: Validation error content: application/json: schema: $ref: '#/components/schemas/ApiErrorResponse' example: type: https://tools.ietf.org/html/rfc2616#section-10 title: Validation Failed status: 422 detail: 'sync_every: sync_every must be one of: never, hour, day' security: - PartnerJwtBearerAuth: [] summary: Update CRM sync settings components: schemas: ApiViolation: required: - propertyPath - title - template - parameters properties: propertyPath: type: string title: type: string template: type: string parameters: oneOf: - oneOf: - type: array items: {} - type: object additionalProperties: {} - type: object additionalProperties: type: string type: object additionalProperties: true ApiErrorResponse: required: - type - title - status - detail properties: type: type: string title: type: string status: type: integer detail: type: string violations: default: null oneOf: - type: - array - 'null' items: $ref: '#/components/schemas/ApiViolation' - type: - object - 'null' additionalProperties: $ref: '#/components/schemas/ApiViolation' type: object additionalProperties: true SettingsResponse: required: - sync_every properties: sync_every: type: string enum: - never - hour - day example: hour type: object additionalProperties: false UpdateSettingsRequest: required: - sync_every properties: sync_every: type: string enum: - never - hour - day example: hour type: object additionalProperties: false UnauthorizedResponse: description: Unauthorized example: error: Unauthorized message: Invalid credentials securitySchemes: PartnerApiKey: type: apiKey description: API Token Authorization from Partner Portal name: api-key in: header PartnerJwtBearerAuth: type: http description: JWT Authorization header using the Partner JWT token. bearerFormat: JWT scheme: bearer