Create Publish Option Value
Interface description: Additional parameter values required when creating platform publishing for an authorized channel account. After successful creation, an option item that can be directly used for publishing tasks is returned.
All additional parameters on the platform side that “need to be created first and then selected” are processed through this interface. For example, Pinterest needs to create a Board first, and then use the returned Board as the publishing target boardId.
Calling process: First call the “Platform Publish Options” interface (GET /api/v2/channels/platforms/{platform}/publish-options) to query what additional parameters the platform has; only fields whose return items contain createSchema are supported for creation. Put the field in the return item into the path parameter field of this interface, and organize the JSON request body according to the createSchema. For fields that do not need to be created, please call the “Publish option optional values” interface to query and select.
Authorizations
Need to get API Key from AiToEarn. Click to go to "API Key Obtaining Tutorial".
Path Parameters
Channel account ID. It must be an account authorized by the current user, and the platform to which the account belongs should be consistent with the platform queried in the "Platform Publishing Options" interface.
The publishing options field to create a value for. The value comes from the data[n].field returned by the "Platform Publish Options" interface, and the return item must contain createSchema.
Body
Create the JSON parameters required to post option values. The specific fields are not fixed structures and must be based on the createSchema in the item returned by the "Platform Publish Options" interface; for example, Pinterest's boardId field will return the schema required to create a Board.
Create the JSON parameters required to post option values. The specific fields are not fixed structures and must be based on the createSchema in the return item of the "Platform Publishing Options" interface.
Response
The request has been processed by the service. Business success is determined by whether the response body has code === 0.

