How do you "build the body"? Is there not a way to simply pass in a JSON array of values to update?
The API I'm using simply requires a JSON objects you wish to update. For example when I put the following into the Body (raw) using the Custom Connector tester
{"first_name":"Henry","middle_name":"Francis","last_name":"Dover"}
it updates the first, middle, and last names.
Is there a way to use PowerApps to send Raw Body with the API call?
The Swagger for the method is
put:
description: TBD
summary: Update a specific document
tags: [RESTful API]
operationId: Updateaspecificdocument
deprecated: false
produces: [application/json, text/html]
consumes: [application/json]
parameters:
- {name: DocType, in: path, required: true, type: string, default: '', description: "The\
\ DocType you'd like to receive. For example Customer, Supplier, \nEmployee,\
\ Account, Lead, Company, Sales Invoice, Purchase Invoice, Stock Entry,\
\ etc."}
- {name: DocumentName, in: path, required: true, type: string, default: '',
description: The name (ID) of the document you'd like to update. For example
EMP001 (of type Employee).}
- name: Content-Type
in: header
required: false
enum: [application/json]
type: string
description: ''
- name: body
in: body
required: false
description: ''
schema: {type: object, x-ms-visibility: important}
x-ms-visibility: important
responses:
default:
description: default
schema:
type: object
properties:
name: {type: string, description: name}
owner: {type: string, description: owner}
creation: {type: string, description: creation}
modified: {type: string, description: modified}
modified_by: {type: string, description: modified_by}
docstatus: {type: integer, format: int32, description: docstatus}
idx: {type: integer, format: int32, description: idx}
naming_series: {type: string, description: naming_series}
salutation: {type: string, description: salutation}
first_name: {type: string, description: first_name, title: '', x-ms-visibility: important}
middle_name: {type: string, description: middle_name}
last_name: {type: string, description: last_name, title: '', x-ms-visibility: important}
lead_name: {type: string, description: lead_name}
job_title: {type: string, description: job_title}
gender: {type: string, description: gender}
source: {type: string, description: source}