Skip to content

Commit

Permalink
entries/save-entry fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Jan 1, 2024
1 parent a1b6ba6 commit 88c59a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/3.x/dev/controller-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following params can be sent with the request:

Param | Description
----- | -----------
`authorId` | The ID of the user account that should be set as the entry author. (Defaults to the entry’s current author, or the logged-in user.)
`author` | The ID of the user account that should be set as the entry author. (Defaults to the entry’s current author, or the logged-in user.)
`enabledForSite` | Whether the entry should be enabled for the current site (`1`/`0`), or an array of site IDs that the entry should be enabled for. (Defaults to the `enabled` param.)
`enabled` | Whether the entry should be enabled (`1`/`0`). (Defaults to enabled.)
`entryId` | Fallback if `sourceId` isn’t passed, for backwards compatibility.
Expand Down
8 changes: 4 additions & 4 deletions docs/4.x/dev/controller-actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,11 @@ Similarly, if you are outputting user-submitted content anywhere on site, take s

Param | Description
----- | -----------
`authorId` | The ID of the user account that should be set as the entry author. (Defaults to the entry’s current author, or the logged-in user.)
`canonicalId` | Canonical (non-draft, non-revision) entry ID to update.
`author` | The ID of the user account that should be set as the entry author. (Defaults to the entry’s current author, or the logged-in user.)
`canonicalId` | The ID of the entry to save, if updating an existing entry.
`enabledForSite` | Whether the entry should be enabled for the entry’s `siteId` (`1`/`0`), or an array of site IDs that the entry should be enabled for. (Defaults to the `enabled` param.)
`enabled` | Whether the entry should be enabled (`1`/`0`). (Defaults to enabled.)
`entryId` | Fallback if `sourceId` isn’t passed, for backwards compatibility.
`entryId` | Fallback if `canonicalId` isn’t passed, for backwards compatibility.
`entryVariable` | The [hashed](./filters.md#hash) name of the variable that should reference the entry, if a validation error occurs. (Defaults to `entry`.)
`expiryDate` | The expiry date for the entry. (Defaults to the current expiry date, or `null`.)
`fieldsLocation` | Parameter name under which Craft will look for custom field data. (Defaults to `fields`.)
Expand All @@ -510,7 +510,7 @@ Param | Description
`sectionId` | The ID of the section the entry will be created in. (Only for new entries. User must have appropriate permissions.)
`siteId` | The ID of the site to save the entry in.
`slug` | The entry slug. (Defaults to the current slug, or an auto-generated slug.)
`sourceId` | The ID of the entry to save, if updating an existing entry (including drafts and revisions).
`sourceId` | Fallback if `canonicalId` isn’t passed, for backwards compatibility.
`title` | The entry title. (Defaults to the current entry title.)
`typeId` | The entry type ID to save the entry as. (Defaults to the current entry type for existing entries, or the first configured type for new ones.)

Expand Down

0 comments on commit 88c59a8

Please sign in to comment.