Skip to content

Commit

Permalink
Support patching custom fields, create using specific fields
Browse files Browse the repository at this point in the history
  • Loading branch information
hansmi committed Dec 17, 2023
1 parent eced992 commit 68f8c61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/client/customfield.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,18 @@ func (c *Client) GetCustomField(ctx context.Context, id int64) (*CustomField, *R
return crudGet[CustomField](ctx, c.customFieldCrudOpts(), id)
}

func (c *Client) CreateCustomField(ctx context.Context, data *CustomField) (*CustomField, *Response, error) {
func (c *Client) CreateCustomField(ctx context.Context, data *CustomFieldFields) (*CustomField, *Response, error) {
return crudCreate[CustomField](ctx, c.customFieldCrudOpts(), data)
}

func (c *Client) UpdateCustomField(ctx context.Context, id int64, data *CustomField) (*CustomField, *Response, error) {
return crudUpdate[CustomField](ctx, c.customFieldCrudOpts(), id, data)
}

func (c *Client) PatchCustomField(ctx context.Context, id int64, data *CustomFieldFields) (*CustomField, *Response, error) {
return crudPatch[CustomField](ctx, c.customFieldCrudOpts(), id, data)
}

func (c *Client) DeleteCustomField(ctx context.Context, id int64) (*Response, error) {
return crudDelete[CustomField](ctx, c.customFieldCrudOpts(), id)
}
Expand Down

0 comments on commit 68f8c61

Please sign in to comment.