Globus SDK for JavaScript
    Preparing search index...

    Variable createConst

    create: (
        payload: {
            request: {
                data: {
                    data: {
                        attributes: { name: string; path: string };
                        relationships?:
                            | { collection: { data: { id: string; type: "Collection" } } }
                            | null;
                        type: "Bookmark";
                    };
                };
            };
        } & ServiceMethodPayload,
    ) => Promise<
        JSONFetchResponse<
            {
                data: {
                    attributes: { name: string; path: string };
                    id: string;
                    relationships?:
                        | { collection: { data: { id: string; type: "Collection" } } }
                        | null;
                    type: "Bookmark";
                };
                included?: | {
                    attributes: { display_name: string; high_assurance: boolean };
                    id: string;
                    relationships?: null;
                    type: "Collection";
                }[]
                | null;
                meta: { request_id: string };
            },
        >,
    > = ...

    Type Declaration

      • (
            payload: {
                request: {
                    data: {
                        data: {
                            attributes: { name: string; path: string };
                            relationships?:
                                | { collection: { data: { id: string; type: "Collection" } } }
                                | null;
                            type: "Bookmark";
                        };
                    };
                };
            } & ServiceMethodPayload,
        ): Promise<
            JSONFetchResponse<
                {
                    data: {
                        attributes: { name: string; path: string };
                        id: string;
                        relationships?:
                            | { collection: { data: { id: string; type: "Collection" } } }
                            | null;
                        type: "Bookmark";
                    };
                    included?: | {
                        attributes: { display_name: string; high_assurance: boolean };
                        id: string;
                        relationships?: null;
                        type: "Collection";
                    }[]
                    | null;
                    meta: { request_id: string };
                },
            >,
        >
      • Parameters

        • payload: {
              request: {
                  data: {
                      data: {
                          attributes: { name: string; path: string };
                          relationships?:
                              | { collection: { data: { id: string; type: "Collection" } } }
                              | null;
                          type: "Bookmark";
                      };
                  };
              };
          } & ServiceMethodPayload

        Returns Promise<
            JSONFetchResponse<
                {
                    data: {
                        attributes: { name: string; path: string };
                        id: string;
                        relationships?:
                            | { collection: { data: { id: string; type: "Collection" } } }
                            | null;
                        type: "Bookmark";
                    };
                    included?: | {
                        attributes: { display_name: string; high_assurance: boolean };
                        id: string;
                        relationships?: null;
                        type: "Collection";
                    }[]
                    | null;
                    meta: { request_id: string };
                },
            >,
        >