Export Details for Multiple Partner Organizations
post
/rest/v19/companies/actions/bulkExport
This endpoint exports details for multiple partner organizations. This operation triggers a task to return a list of partner organizations as a zip file.
Request
Supported Media Types
- application/json
Root Schema : companies-exportRequest
Type:
Show Source
object-
criteria:
object criteria
-
fileFormat:
string
Title:
File FormatAllowed Values:[ "CSV", "XML" ]File download format. -
scheduledTime:
string
Title:
Scheduled TimeTime to schedule the task.
Nested Schema : criteria
Type:
Show Source
object-
q:
string
Title:
Filter QueryFilter query in mongo format.
Response
Supported Media Types
- application/json
Default Response
Companies Export Task details.
Root Schema : Task Details
Type:
objectTitle:
Task DetailsTask details.
Show Source
-
links:
object reference links
Title:
reference linksReference links for the Parent, Self, Children and Related as applicable -
taskId:
integer
Title:
Task IdTask id.
Nested Schema : reference links
Type:
objectTitle:
reference linksReference links for the Parent, Self, Children and Related as applicable
Show Source
-
href:
string
Title:
URL to the related objectURL to the related object -
rel:
string
Title:
Link Relationship to the current objectLink Relationship to the current object
Examples
The following example shows how to export details for multiple partner organizations by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl -X POST -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json" https://sitename.oracle.com/rest/v19/companies/actions/bulkExport
Request Body Sample
{
"fileFormat": "csv",
"scheduledTime": "2023-12-11T05:50:00Z",
"criteria": {
"q": "{'login' :{'$like':'%po%'}}"
}
}
Response Body Sample
{
"taskId": 3022163950,
"links": [{
"rel": "related",
"href": "https://sitename.oracle.com/rest/v19/tasks/3022163950"
}
]
}