Skip to content

feat: add REST API endpoint to update user profile links#23

Open
xavierandueza wants to merge 1 commit into
masterfrom
xavierandueza/add-user-endpoint
Open

feat: add REST API endpoint to update user profile links#23
xavierandueza wants to merge 1 commit into
masterfrom
xavierandueza/add-user-endpoint

Conversation

@xavierandueza
Copy link
Copy Markdown
Owner

Summary

  • Adds a new WP_REST_Profile_Links_Controller that allows for updating existing user profile links stored in user meta.

Test plan

  • Confirm last_modified timestamp is set after a successful update
  • Verify unauthenticated requests return a 401 error
  • Verify requests for a non-existent slug return a 404 error
  • Verify users without edit_user capability receive a 403 error

Add WP_REST_Profile_Links_Controller to support updating user profile
links via POST/PUT/PATCH on /wp/v2/users/{user_id}/profile-links/{slug}.
Follows the same pattern as the Application Passwords controller.
@readme-ai-writer
Copy link
Copy Markdown

readme-ai-writer Bot commented Apr 29, 2026

Documentation Changes Added

Page Section Action Summary
profile-linksAPI Reference🆕 CreatedCreate a parent reference page for the Profile Links REST API endpoints.
update-profile-linkAPI Reference🆕 CreatedCreate API reference page for the new Update Profile Link REST API endpoint (PUT /wp/v2/users/{user_id}/profile-links/{slug}).

🔗 View all changes in ReadMe

🗑️ Documentation branch was automatically deleted because the PR was closed without merging.

@readme-ai-writer
Copy link
Copy Markdown

readme-ai-writer Bot commented Apr 29, 2026

Documentation Changes Added

Page Section Action Summary
update-profile-linkAPI Reference🆕 CreatedCreated API reference page for the new REST API endpoint to update a user's profile link.

🔗 View all changes in ReadMe

🗑️ Documentation branch was automatically deleted because the PR was closed without merging.

@readme-agent-staging
Copy link
Copy Markdown

readme-agent-staging Bot commented Apr 29, 2026

⚠️ The documentation bot was unable to process documentation updates (Job ID: 69f1530f7e4f762cf86cd306).

You can re-trigger by converting this PR to draft, then opening for review again.

@readme-ai-writer
Copy link
Copy Markdown

readme-ai-writer Bot commented Apr 29, 2026

Documentation Changes Added

Page Section Action Summary
profile-linksAPI Reference🆕 CreatedCreate parent reference page for the Profile Links REST API endpoints.
update-a-profile-linkAPI Reference🆕 CreatedCreate API reference page for the Update Profile Link endpoint (PUT/PATCH /wp/v2/users/{user_id}/profile-links/{slug}).

🔗 View all changes in ReadMe


Actions

  • Merge documentation branch with PR merge
  • Delete documentation branch with PR close

If neither actions are selected, on PR close/merge the docs branch in ReadMe will remain open.

@readme-ai-writer
Copy link
Copy Markdown

readme-ai-writer Bot commented Apr 29, 2026

Documentation Changes Added

Page Section Action Summary
profile-linksAPI Reference🆕 CreatedCreate parent reference page for the Profile Links REST API endpoints.
update-a-profile-linkAPI Reference🆕 CreatedCreate API reference page for the Update Profile Link endpoint (PUT/PATCH).

🔗 View all changes in ReadMe


Actions

  • Merge documentation branch with PR merge
  • Delete documentation branch with PR close

If neither actions are selected, on PR close/merge the docs branch in ReadMe will remain open.

@readme-agent-staging
Copy link
Copy Markdown

readme-agent-staging Bot commented Apr 29, 2026

⚠️ The documentation bot was unable to process documentation updates (Job ID: 69f153777e4f762cf86cd30e).

You can re-trigger by converting this PR to draft, then opening for review again.

@xavierandueza xavierandueza marked this pull request as draft April 29, 2026 00:42
@xavierandueza xavierandueza marked this pull request as ready for review April 29, 2026 00:42
@readme-agent-staging
Copy link
Copy Markdown

readme-agent-staging Bot commented Apr 29, 2026

⚠️ The documentation bot was unable to process documentation updates (Job ID: 69f153e87e4f762cf86cd314).

You can re-trigger by converting this PR to draft, then opening for review again.

@readme-ai-writer
Copy link
Copy Markdown

readme-ai-writer Bot commented Apr 29, 2026

Documentation Changes Added

Page Section Action Summary
update-profile-linkAPI Reference🆕 CreatedAdd API reference page for the new REST API endpoint to update a user's profile link.

🔗 View all changes in ReadMe


Actions

  • Merge documentation branch with PR merge
  • Delete documentation branch with PR close

If neither actions are selected, on PR close/merge the docs branch in ReadMe will remain open.

@readme-ai-writer
Copy link
Copy Markdown

readme-ai-writer Bot commented Apr 29, 2026

Documentation Changes Added

Page Section Action Summary
profile-linksAPI Reference🆕 CreatedCreate parent reference page for the Profile Links REST API endpoints.
update-a-profile-linkAPI Reference🆕 CreatedCreate API reference page for the new PUT /wp/v2/users/{user_id}/profile-links/{slug} endpoint.

🔗 View all changes in ReadMe


Actions

  • Merge documentation branch with PR merge
  • Delete documentation branch with PR close

If neither actions are selected, on PR close/merge the docs branch in ReadMe will remain open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant