SP.FieldLink object

Specifies a reference to a field or field definition for a content type.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.FieldLink()

Members

The FieldLink object has the following members.

Constructor

The FieldLink object has the following constructor.

Constructor

Description

FieldLink

Initializes a new instance of the SP.FieldLink object.

Methods

The FieldLink object has the following methods.

Method

Description

deleteObject

Deletes this FieldLink from the collection of the parent content type.

Properties

The FieldLink object has the following properties.

Property

Description

hidden

Gets or sets a value that specifies whether the field is displayed in forms that can be edited.

id

Gets a value that specifies the GUID of the FieldLink.

name

Gets a value that specifies the name of the FieldLink.

required

Gets or sets a value that specifies whether the field (2) requires a value.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeidcontenttypeid})/fieldlinks(fieldlinkid

HTTP requests

This resource supports the following HTTP commands:

DELETE syntax

DELETE http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeidcontenttypeid})/fieldlinks(fieldlinkid

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeidcontenttypeid})/fieldlinks(fieldlinkid