Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PATCH /organization and add new property is_approval_workflow_enabled #203

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion openapi/stellar-disbursement-platform/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1490,9 +1490,25 @@ paths:
description: 'Updates the organization profile details. Only account owners have permission to do this. Note: both fields are optional but at least one should be sent in the request. It is not necessary to set the header Content-Type for this request. It is set automatically by the HTTP client.'
tags:
- Organization
parameters: []
consumes:
- multipart/form-data
produces:
- application/json
parameters:
- in: formData
name: logo
type: file
description: 'The logo of the organization, file type must be png or jpeg.'
- in: formData
name: data
type: string
format: json
description: >
A JSON string that contains the details to update. Contains the following keys:
`organization_name` (string): the new name of the organization,
`timezone_utc_offset` (string): the new timezone offset of the organization,
`is_approval_workflow_enabled` (boolean): whether the approval workflow is enabled or not.
For example: '{"organization_name": "NewOrgName", "timezone_utc_offset": "+02:00", "is_approval_workflow_enabled": true}'
security:
- BearerAuth: []
/organization/logo:
Expand Down Expand Up @@ -2186,6 +2202,10 @@ definitions:
timezone_utc_offset:
type: string
example: '+00:00'
is_approval_workflow_enabled:
description: 'Enables multi-user approval workflow for disbursements'
type: boolean
example: true

Pagination:
type: "object"
Expand Down