Generate Draft
- Endpoint Path:
/api/v2/editor/{type}/generate/{fsid}
- Method:
POST
- Request:
Rest
Headers Optional Parameter
Parameter Name | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | required | required |
X-Fresns-Aid-Token | required | required |
X-Fresns-Uid | required | required |
X-Fresns-Uid-Token | required | required |
Rest Params
Parameter Name | Type | Required | Description |
---|---|---|---|
type | String | required | post or comment |
fsid | String | required | pid or cid |
Return
json
{
"code": 0,
"message": "ok",
"data": {
"detail": {
// Common Data Structure -> Post Log Info or Comment Log Info
},
"editControls": {
"isEditDraft": "Boolean / Whether it is an editable draft",
"editableStatus": "Boolean / Whether it can be edited",
"editableTime": "String / Remaining editable time, for example 03:00 means 3 minutes left",
"deadlineTime": "String / The specific date and time of the editable deadline, for example 2022-07-01 15:05:00"
}
}
}